Re:Type hints – a mediocre programmer's reaction (2015)
by tdb7893 on Thursday March 17, 2016 @05:41PM
(#11307855)
I feel like JS mainly has transpilers because people are locked in to the language, which is not true of python
[ Parent
| on HN ]
Re:Type hints – a mediocre programmer's reaction (2015)
by nsfmc on Thursday March 17, 2016 @05:52PM
(#11307925)
i'm pretty sure js transpilers are a symptom of having to support many js environments and js versions but folks wanting to have access to current language features anyway. people have made this too for python and it's called `3to2`, which is a backwards version of the `2to3` language upgrade tool.
babeljs for example used to be called `6to5` so i don't think it's lockin that causes this desire, but it's certainly true that the options for clientside programming languages that are widely deployed are fairly slim. i don't think they're related though.
Re:Type hints – a mediocre programmer's reaction (2015)
by mchahn on Thursday March 17, 2016 @05:46PM
(#11307883)
People that choose Python are "locked in" to a language that doesn't have static typing.
Re:Type hints – a mediocre programmer's reaction (2015)
by jorams on Thursday March 17, 2016 @07:45PM
(#11308627)
You are missing the point. People that choose Python do just that, they choose Python. The use of JS is very often not a matter of choice, because it's the only language supported in browsers.
Re:Type hints – a mediocre programmer's reaction (2015)
by koder2016 on Friday March 18, 2016 @08:41AM
(#11311343)
Exactly, there is a difference between torture (JavaScript) and masochism (Python).
Re:Type hints – a mediocre programmer's reaction (2015)
by adambrenecki on Thursday March 17, 2016 @08:50PM
(#11309012)
People that choose Python _chose_ a language that doesn't have static typing.
People that want to write code that runs in a Web browser are locked in to Javascript, so they're "locked in" to JS; I can't think of a platform where the only option is to use Python.