News for hackers. Stuff that matters.
Re:OCaml for the Masses (2011) by asplake on Monday November 26, 2018 @08:18AM (#18533085)
Could Kotlin or Swift do it? I like Python/Flask/Sqlalchemy for backend web dev, but I long for a modern, statically typed FP alternative that’s equally (or nearly as) practical and accessible. Just a pipe dream?
Re:OCaml for the Masses (2011) by kod on Monday November 26, 2018 @08:29AM (#18533158)
Kotlin doesn't belong in these discussions, no exhaustive pattern matching.
Re:OCaml for the Masses (2011) by pjmlp on Monday November 26, 2018 @10:33AM (#18534007)
The language is not set in stone.
Re:OCaml for the Masses (2011) by billfruit on Monday November 26, 2018 @01:42PM (#18535719)
There is hardly anything FP about Kotlin.
Re:OCaml for the Masses (2011) by icebraining on Monday November 26, 2018 @10:47AM (#18534095)
Have you tried Mypy? It certainly has limitations, but it provides some static typing to Python.
Re:OCaml for the Masses (2011) by weberc2 on Monday November 26, 2018 @04:10PM (#18536826)
I've tried mypy, but it's still too immature (creates more issues than it solves). Specifically it's buggy and very limited (IIRC support for recursive types hadn't landed and many popular libraries--like SQLAlchemy--can't be annotated or stubbed).