On Mon, 22 Sep 2014 16:21:42 +0000 Wyatt via Digitalmars-d <digitalmars-d@puremagic.com> wrote:
> On Saturday, 20 September 2014 at 04:52:58 UTC, Andrei > Alexandrescu wrote: > > > > alias A = Typedef!float; > > alias B = Typedef!float; > > > > By basic language rules, A and B are identical. Making them > > magically distinct would be surprising... > > > Hold up. See, "Making them magically distinct would be > surprising" is really the sticking point for me because in my > experience it rings false. it's abusing 'alias' which makes it all a mess. if we look at the code above as 'idiomatic D code', then A and B should be similar. but if we looking at the code as 'hacky replacement for real typedef', A and B should not be similar. seems that Andrei talking about 'idiomatic D' and we are talking about 'hacky typedef replacement'. that's why we can't settle the issue: we are both right! ;-) and that's why we need 'typedef' revived, methinks.
signature.asc
Description: PGP signature