Shopping for template languages - tuples
Nick Treleaven
nick at geany.org
Wed Aug 14 20:37:26 UTC 2024
On Wednesday, 14 August 2024 at 16:05:16 UTC, user1234 wrote:
> I remember now that what is deprecated is to use the result of
> the comma-exp.
Yes.
> I just wanna say, off-topic, that if D wants tuples, it would
> be time to fully deprecate the exp, depending on if you want
> tuples in 3 (deprecate now) or 6 years (do nothing for now).
A tuple expression would probably require brackets:
https://forum.dlang.org/post/p3bdp1$2b4e$1@digitalmars.com
A comma expression result can't be used. I think it can only be
used as an expression statement, or in the `for` *Increment*
clause. Are there any cases where it could conflict with
bracketed tuples? dmd accepts a comma expression with
parentheses, but that would presumably be a 'has no effect' error
if it was parsed as a tuple.
More information about the Digitalmars-d
mailing list