Discussion Thread: DIP 1037--Add Unary Operator ...--Community Review Round 1

claptrap clap at trap.com
Sun Nov 1 10:15:44 UTC 2020


On Saturday, 31 October 2020 at 23:09:31 UTC, Manu wrote:
> On Sat, Oct 31, 2020 at 12:05 PM Paul Backus via Digitalmars-d 
> < digitalmars-d at puremagic.com> wrote:
> Is "Alias Sequence" present in spec language?
> This really demonstrates how much D needs first-class tuples; 
> this area of
> the language is a shit-fight, and essentially just a weird 
> abuse of
> template argument lists mixed with `alias` and some 
> implementation defined
> behaviour, which happens to look and feel a lot like a tuple.

tuples already exists in other languages, in math / set theory, 
it's already a fairly well established idea and it seems a bit 
weird for D to invent its own name for what's essentially the 
same thing.

To me "alias sequence" is an implementers name, it's named for 
how it's implemented not for the actual concept.

It's like "when you see enum think manifest constant"

"When you see AliasSeq think tuple"

Or if instead of lambdas D decided to have "alias functions"...

arrghh


More information about the Digitalmars-d mailing list