Jarrett Billingsley wrote:
On Fri, Jul 10, 2009 at 1:50 AM, Walter
Bright<newshou...@digitalmars.com> wrote:

Without any way to sequence expressions in place, a lot of manipulation
becomes much more complicated. Comma expressions have been around a long
time, they work well, and are often used.

Then why not, as someone else has suggested, use some kind of internal
sequence node, maybe with an obscure keyword as the separator?  It's
just that the syntactic possibilities of the comma operator are too
wonderful to ignore.  It seems like such a waste of an operator for
something that most people won't use in _human-generated_ code outside
of for loop headers.

Because an *internal* sequence node will not be available to anyone writing D code that generates D code.

The sequence operator is very valuable to anyone writing code that generates code, pulling it out of D would make D fairly unusable for advanced metaprogramming.

Reply via email to