4 ms·
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 pytho
by nikofeyn 8y ago
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?
- targafarian 8y ago> 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)).
- nikofeyn 8y agoi 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.
- nikisweeting 8y agoMy 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"...
- magduf 8y agoIn 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.