In JS, was chiefly undefined-ness / nullability. I’d make a typo; some value computed from that value would be undefined, then coerced to 0…
Conversation
Yep, definitely makes sense. I don’t know enough about Flow vs. TypeScript but seems like latter lacks nullability, sum types?
1
Andy I have a project that provides exactly what you need just give me uh… six… years… to develop it fully
1
flowtype.org/docs/union-int
If TS supports tagged unions, we’re good! Can you link me to docs on nullability on TS? :)
1
1
More on unions: flowtype.org/blog/2015/07/0. Flow is probably a better fit but less mature. Maybe better anyway.
2
Replying to
I found one row in my database with the string value of "false", while all other rows were Boolean. Scary stuff this JS.
1



