Browse thread
Custom operators in the revised syntax
-
Nicolas Pouillard
- Loup Vaillant
- Stefano Zacchiroli
- dmitry grebeniuk
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | dmitry grebeniuk <gds-mlsts@m...> |
| Subject: | Re: [Caml-list] Custom operators in the revised syntax |
Shalom, Nicolas. NP> Today it's about custom operators. In the original syntax everyone NP> knows that's easy to define and use custom operators like ++, -->, >>>>, +|, =?=, ... and as many as you want. As for me, the lack of custom infix operators in revised syntax is a feature that allows to keep code clean, without any "=?=" or "<<+". The code "(func arg1 arg2)" is imho much more readable than "arg1 op arg2" because: 1. function name usually says something about the meaning of the function, 2. you don't need to remember operator's precedence and associativity to understand the code. -- WBR, dmitry mailto:gds-mlsts@moldavcable.com