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

bearophile bearophileHUGS at lycos.com
Mon Mar 31 14:05:09 PDT 2014


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.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list