tuple (TypeTuple kind) multi-initialization. Actually documented?

monarch_dodra monarchdodra at gmail.com
Mon Mar 31 14:10:21 PDT 2014


On Monday, 31 March 2014 at 21:05:11 UTC, bearophile wrote:
> monarch_dodra:
>
>> bearophile made a suggestion that we should deprecate this.
>> https://d.puremagic.com/issues/show_bug.cgi?id=6367
>
> It goes against the idea of tuple. No language that I know 
> (Haskell, Rust, F#, Python, and more) that has tuples supports 
> the initialization of a n-tuple with a scalar value. It's 
> sloppy. And sloppy designs usually find a way to bite your rump 
> later.

Yes, but at this point, I (we?) don't even know if it's intended 
behavior to begin with.

If it was an accident it worked to begin with, then it's fate 
should be sealed pretty fast.

The fact that CTFE doesn't seem to work with it seems (to me) an 
indication of that.


More information about the Digitalmars-d-learn mailing list