Comment

Comment by PeterisP

Well, no, the above solution is to have a {} if and only if explicit scoping is desired instead of having just as many {} as there would be ().

Sometimes you need explicit scope for a bunch of things and the code would benefit from it. That doesn't justify having explicit scopes for everything all the time.

parent PeterisP 2 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton