Re:Brython: an implementation of Python 3 running in the bro...
by runarberg on Tuesday July 20, 2021 @04:58PM
(#27899238)
I’m actually hoping for something more akin to python’s optional type annotations. Where opting in is as simple as using type annotations. The runtimes (i.e browsers, nodejs, etc.) would then simply ignore them like they do with comments. But third party tools could use them to do some static analysis. Like mypy does for python (or tsc --noEmit does for javascript).
[ Parent
| on HN ]
Re:Brython: an implementation of Python 3 running in the bro...
by rpmisms on Tuesday July 20, 2021 @06:59PM
(#27900354)
It really depends on if you want enforced typing, which is why I think a feature flag could be useful. There's room for both—explicit typing being available, and enforced types being a flag away.