News for hackers. Stuff that matters.
Re:Reasons Python Sucks by fhood on Tuesday December 18, 2018 @11:52AM (#18708061)
> You can use type annotations, either via the builtin lib or 3rd party libs!

> https://docs.python.org/3/library/typing.html

I know, but tragically, because I am not forced to, I never do. I do appreciate that feature though. Maybe this will be the impetus I need to start taking advantage of it.

Re:Reasons Python Sucks by computerfriend on Tuesday December 18, 2018 @12:09PM (#18708233)
I started doing this about a year ago and it has made me a better Python developer. Getting into the habit of always writing a type annotation was hard at first, but you quickly get used to it. It helps if you configure mypy to complain at you if the annotations are missing.
Re:Reasons Python Sucks by lmm on Tuesday December 18, 2018 @05:57PM (#18711391)
You'll have a much better experience in an ecosystem where typing is the widespread expectation, IME.

Try an ML-family language if you haven't already - I find they combine the best parts of something like Python and something like Java. There was a post pushing F# earlier today.

Re:Reasons Python Sucks by dharmab on Tuesday December 18, 2018 @12:26PM (#18708442)
If you're starting a new project you can force yourself by running mypy's strict mode in CI.