8 ms·
But writing Python is a pleasure :( And writing the same thing is Go feels like wasting my wrists for nothing, specially for throwaways and simple web code...
by swah 10y ago
But writing Python is a pleasure :( And writing the same thing is Go feels like wasting my wrists for nothing, specially for throwaways and simple web code...
Maybe one could write Python and turn a "strict" flag for the module (project?) where you'd have to fill in the types and it becomes Scala-like.
- auxym 10y agoDon't know if you are aware, but python now supports optional type hints.
- lfowles 10y agoIs there a runtime that enforces them? I've certainly found them useful in restricting autocompletion, but I've still been able to feed in accidental Nones.
- auxym 10y agoI have yet to try it, but there are things like mypy and PyCharm apparently has an integrated type checker now. http://mypy-lang.org/ http://mypy-lang.org/
- sametmax 10y agoYou kinda have this already, it's called mypy.
- dllthomas 10y ago> But writing Python is a pleasure This sentiment seems commonly shared, but by no means universally.