Re:Ask HN: What made you change your mind about a programmin...
by nikofeyn on Monday March 04, 2019 @09:32AM
(#19301505)
as a serious question, why even use python if you have to go through hoops to make it work even half as well as other languages? are you reliant upon some python only library?
[ Parent
| on HN ]
Re:Ask HN: What made you change your mind about a programmin...
by nikisweeting on Monday March 04, 2019 @11:37AM
(#19302519)
My experience when switching to other languages is "why do you have to go through so many hoops to make this work even half as well as Python"...
Re:Ask HN: What made you change your mind about a programmin...
by magduf on Monday March 04, 2019 @04:06PM
(#19305496)
In my experience, Python is usually used because of a low barrier-to-entry and the availability of a lot of libraries. It's great for slapping something together quickly to do something useful. However, if you want something that's high-performance and well-engineered, it just isn't the right tool for the job usually.
Re:Ask HN: What made you change your mind about a programmin...
by targafarian on Monday March 04, 2019 @11:08AM
(#19302265)
> go through hoops
mypy and types are only "hoops" in comparison to non-annotated Python (in terms of added syntax / coding effort), yet compared to explicitly typed languages where you have to declare types, that's just standard thing you have to do so there is no extra effort in comparison to these other languages (and then the judgment that it only works "half as well" is controversial (Edit: or at least needs qualification)).
Re:Ask HN: What made you change your mind about a programmin...
by nikofeyn on Monday March 04, 2019 @01:44PM
(#19303973)
i prefer ml dialects like f# or ocaml or something like racket that gives you both static and dynamic languages that can interoperate. in f# and ocaml, the type inference handles most things, although you do need to manually declare types sometimes. it is often a good idea anyway.
and what i mean by hoops is that python is not designed to have static types. thus, any type system added is tacked on by definition and will lead to "hoops". in something like f#, at no point will the existence of its type system and inference be a surprise. the language is built around and with the type system.