digitalmars.D.learn - Way to use var instead of auto?
- MMJones (2/2) Jul 03 2016 I like the term var better than auto. Is there a way to alias
- ag0aep6g (2/3) Jul 03 2016 no
- Jack Stouffer (6/8) Jul 03 2016 If you're thinking of var as in JS's var, they're not the same
- ZombineDev (4/6) Jul 04 2016 If you really want to have Javascript-like semantics in D, you
I like the term var better than auto. Is there a way to alias auto?
Jul 03 2016
On 07/04/2016 12:00 AM, MMJones wrote:I like the term var better than auto. Is there a way to alias auto?no
Jul 03 2016
On Sunday, 3 July 2016 at 22:00:39 UTC, MMJones wrote:I like the term var better than auto. Is there a way to alias auto?If you're thinking of var as in JS's var, they're not the same thing. Even if you could alias it I would advise against doing something like that; assume your code will be maintained by someone else one day.
Jul 03 2016
On Sunday, 3 July 2016 at 22:00:39 UTC, MMJones wrote:I like the term var better than auto. Is there a way to alias auto?If you really want to have Javascript-like semantics in D, you try this: https://github.com/adamdruppe/arsd/blob/master/jsvar.d
Jul 04 2016