Re:From Rust to TypeScript
by dvdgsng on Saturday September 12, 2020 @06:02PM
(#24456252)
Why is #3 a problem? It's a feature! Enums are a great way to enforce values to a predefined set. I don't want you to work around it with random strings. Use the enum. That's what it is there for.
[ Parent
| on HN ]
There are no comments on this comment yet.