Brian Di Palma wrote:
Would type annotations not be a cleaner way of achieving
discrimination between types?
The topic here was an introspective operator, typeof, or something similar.
Type annotations are a different category and even in static languages,
do not relieve the need for introspection.
Also, type annotations to merit the name need a type system, and no one
has found one that works for JS in full. Dart and TypeScript have
"warning annotations" -- which also do not relieve the need for
introspection _a la_ typeof or instanceof.
/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss