I just thought about #javascript #flow: the annotations are removed in
production, which could result in a dev using it for input validation
3 replies
The tcomb checks can be removed with babel, but I think shouldn't because it
provides a great solution for input validation.
behaviour. So I'm thinking it might be better to use tcomb, which does runtime
type checking, instead of inspection based type checking.
like (argument foo must be string), but when it's called later in production,
the guard is no longer in place. Which could lead to unexpectd