Tuples a first class feature, manu's new unary operator and named arguments

Timon Gehr timon.gehr at gmx.ch
Sat May 9 06:29:46 UTC 2020


On 09.05.20 06:41, Walter Bright wrote:
> On 5/8/2020 9:36 PM, Manu wrote:
>> It's still hideous though. Fundamental language features would ideally 
>> be acknowledged and speced rather than expressed incidentally by an 
>> ugly hack.
> 
> We can defer this discussion until the DIP is presented. But the 
> existence of the AliasSeq should be discussed in the DIP as an alternative.

It is not a viable alternative, which the DIP might discuss, but I don't 
really see why it has to. For example, you cannot create a range of 
AliasSeq's, which should make it obvious that it does not fulfill the 
desired role. Auto-expansion is nice as a feature and having 
auto-expanding sequences actually be first-class objects is a nice 
touch, but they don't replace traditional tuples.


More information about the Digitalmars-d mailing list