Does D have too many features?
Jacob Carlborg
doob at me.com
Mon Apr 30 03:48:34 PDT 2012
On 2012-04-30 05:45, H. S. Teoh wrote:
> While personally, I like the idea of being able to create new infix
> operators, it will cause too big a change to D syntax, and probably
> cause lots of breakages with existing code, as well as make the
> lexer/parser much harder to implement (given the existing D features).
>
> You also then have to deal with operator precedence between arbitrary
> user-defined operators, which is non-trivial in general (though it's
> workable if you impose some constrains -- but it's probably way beyond
> the scope of D2 or even D3).
Yes, a language would basically need to be designed with this in mind
from the start. That's what I'm thing sometimes, D could have gone down
some other road in some cases but it's way too late to change it now.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list