Re:Don't Use Booleans
by ivan_gammel on Tuesday July 09, 2024 @11:26AM
(#40917219)
In Java it is de facto standard to serialize enums as string, with exception of JPA where you can explicitly tell if it’s a string or a number. It also supports exotic mappings via explicit declarations. Typescript should have implemented enums with union type under the hood, enabling the use of constants instead of strings when passing/checking values.
[ Parent
| on HN ]
There are no comments on this comment yet.