5 ms·
The point is that a language can evolve so much they are not even the same language. I prefer ES2016 to Python for example.
by tarsinge 6y ago
The point is that a language can evolve so much they are not even the same language. I prefer ES2016 to Python for example.
- fastball 6y agoEh, the weak typing intrinsic in JS still makes Python win out between those two.
- wolco 6y agoPython turns you into someone who cares how many invisible characters and of which type for each line you code. Weaking typing vs strong typing is the least of your concern
- MauranKilom 6y agoYou (should) do that in other languages too. I'm not a fan of the way Python does it, but 1. it's not like you decide tabs vs spaces anew on each line, and 2. this is simply not a practical issue, unlike weak vs strong typing.
- tarsinge 6y agoThat really is use case dependent for me. In the context where I have made a thoughtful choice to use a dynamically typed language, I find strong typing seems to make things unnecessary clunky with not much gain, especially in webdev dealing with a lot of JSON and UI display. And if I’m in a situation where JS/dynamic language is not a good choice then I prefer a real statically typed language, not a middle-ground.
- fastball 6y agoIn what situations do you find weak typing useful? I've only ever had it introduce bugs and not make my life any easier. Meanwhile dynamic typing makes it a lot quicker to prototype things (vars that can be null or an int, for instance).
- amelius 6y agoNumpy wouldn't work in JS because you can't overload operators afaik. Numpy/scipy are reasons why many people love Python.
- tchaffee 6y agoIt would work. All those overridden operators are just functions. It wouldn't be as concise or as intuitive though.
- amelius 6y agoYes, that was the point ;) Both languages are practically Turing complete so they are equivalent if you're just interested in what you can build with them.
- tchaffee 6y agoAh ok, by "numpy wouldn't work in JS" you meant something like it wouldn't be popular or as loved. Makes more sense now.