4 Matching Annotations
- May 2021
Because constants in Ruby aren't meant to be changed, Ruby discourages you from assigning to them in parts of code which might get executed more than once, such as inside methods.
- Sep 2020
There are tools in Svelte that break this expectation to a degree, but they are a bit annoying to use, which makes it an active decision on the part of the developer. The API hints at the way we want you to do things because we feel that this will give the better experience.
There is an escape hatch in :global() that facilitates this. It is verbose, and we are okay with that, we don't want it to be too pleasant to use. We don't want people doing this at all, but it is there when needed.
- loophole/escape hatch
- intentional/well-considered decisions
- discouraging something by making it verbose/unergonomic/painful/ugly/annoying
- being explicit
- making it intentionally hard
- official preferred convention / way to do something
- Mar 2020