3 Matching Annotations
- 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
- making it intentionally hard
- official preferred convention / way to do something
- being explicit
- intentional/well-considered decisions
- discouraging something by making it verbose/unergonomic/painful/ugly/annoying
- Mar 2020