Does D have too many features?
Dmitry Olshansky
dmitry.olsh at gmail.com
Sun Apr 29 08:00:42 PDT 2012
On 29.04.2012 18:40, Jacob Carlborg wrote:
>
> 1 + 2
> foo bar foo_bar
>
> Would be translated to:
>
> 1.+(2)
> foo.bar(foo_bar)
>
> That is a very general way to handle operators and let the user create
> new operators, not just overloading existing ones.
>
warning(1): Smalltalk detected! [use -foop-only to ignore]
Operator precedence would get real tricky (or stupid just like in
Smalltalk).
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list