Short list with things to finish for D2
grauzone
none at example.net
Wed Nov 18 17:01:58 PST 2009
bearophile wrote:
> Andrei Alexandrescu:
>
>> * Encode operators by compile-time strings. For example, instead of the
>> plethora of opAdd, opMul, ..., we'd have this:
>>
>> T opBinary(string op)(T rhs) { ... }
>>
>> The string is "+", "*", etc.
I thought the problem with this was that the lexer/parser would have to
know about semantics, which is against the goals of the language. Would
the operator actually be inside quotes?
Anyway, do we _really_ want to make it possible, that valid D code will
look like ASCII art?
More information about the Digitalmars-d
mailing list