Why is D unpopular, redux.
bauss
jj_1337 at live.dk
Wed May 25 06:58:46 UTC 2022
On Tuesday, 24 May 2022 at 15:31:47 UTC, Adam D Ruppe wrote:
>
> Use the `let` keyword for a local lexically scope thing, and
> then you'll see the cb behavior is different.
>
> Since D's scoping is more like `let` than `var`, JS is a point
> in favor of it being a bug.
>
Also you should never use var anymore anyway, always use let if
you can, which you can in 99.9% of all cases since it really only
isn't supported with older engines.
In fact I'd argue that the only reason var isn't a deprecation in
JS is because of legacy code.
More information about the Digitalmars-d
mailing list