News for hackers. Stuff that matters.
Re:OCaml for the Masses (2011) by qwerty456127 on Monday November 26, 2018 @08:33AM (#18533190)
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.

Re:OCaml for the Masses (2011) by icebraining on Monday November 26, 2018 @10:51AM (#18534136)
>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#unty... ?

Re:OCaml for the Masses (2011) by qwerty456127 on Monday November 26, 2018 @01:25PM (#18535575)
Looks 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.