Re:TypeScript enums: use cases and alternatives
by diggan on Monday January 20, 2025 @05:57AM
(#42767354)
Speaking about the specification, it's a proposal. Yes, some run ahead and implement proposals under experimental flags, doesn't make it any more/less hypothetical as the proposal can still be rejected rather than progressing.
[ Parent
| on HN ]
Re:TypeScript enums: use cases and alternatives
by mistercow on Monday January 20, 2025 @06:01AM
(#42767383)
Come on, now.
> maybe in the future JS runtimes might be able to strip away types for you without a build-step.
You can't backpedal from that to "speaking about the specification". It's not future JS runtimes. It's a thing you can take advantage of right now.