4 ms·
I'd take python and add optional variable declaration and flexible explicit typing constraints (a variable can be declared as either having certain methods retu
by noamsml 15y ago
I'd take python and add optional variable declaration and flexible explicit typing constraints (a variable can be declared as either having certain methods returning a certain type, or as being of a set of types, or as being of any type, but all type declarations are optional) that are verified at compile time.
- deleted 15y ago[deleted]
- tjpick 15y agoI'd take python and make all the people who write libraries for it write proper documentation.
- raganwald 15y agoI used to think, "Here's a library with a README on the side to get you started." Now I think, "Here's an essay with a library on the side to get you started."
- boyter 15y agoIf type hinting (and checked at parse/compile time) was in Python it would solve my biggest complaints with the language. Yes I know you can write unit tests to do it but frankly that's busy work I shouldn't have to worry about.
- DasIch 15y agoYou can't have optional variable declaration and compile time verification. Either you have optional variable declaration and checking is performed and runtime or you get compile time verification and make the language static.
- tomjen3 15y agoSure you can. The google closure library did that to javascript. You just don't get all the typeerors.