3 ms·
I've been mesmerized with FP and algebraic typing as soon as I've tried Scala. But now I end up wondering why would anybody choose something other than Clojure
by qwerty456127 8y ago
I've been mesmerized with FP and algebraic typing as soon as I've tried Scala. But now I end up wondering why would anybody choose something other than Clojure or Scheme.
Nevertheless I currently use Python because 1. really great and alive library ecosystem (Pandas, Numpy, Keras and PyQt especially) 2. everybody codes at least some Python, this way whatever I write it is actually going to be hackable by everybody.
I just hope Reason is going to be more successful that F# in going mainstream an will actually replace JavaScript for React developers at least. I also hope an option to force "type hints" (I put them all over the code) is going to be introduced in future versions of Python and Hy language support (Hy is a Lisp over Python, like what Clojure is for Java) is going to be introduced in future versions of PyCharm.
- icebraining 8y ago>I also hope an option to force "type hints" is going to be introduced in future versions of Python Have you checked https://mypy.readthedocs.io/en/latest/command_line.html#untyped-definitions-and-calls https://mypy.readthedocs.io/en/latest/command_line.html#unty... ?
- qwerty456127 8y agoLooks curious, thanks. Nevertheless it (or a part of it) has to become a part of the CPython standard and get switched on by default at some point for the quality of the ecosystem code to start increasing by means of more Python coders being gently pushed to type-mindfulness. I also couldn't find a flag that would rise warnings when a value of a non-matching type gets assigned to a variable with a defined type hint yet allow everything else - IMHO such one would be the most useful.