News for hackers. Stuff that matters.
Re:Python exceptions considered an anti-pattern by OJFord on Tuesday February 12, 2019 @02:25PM (#19146624)
Agreed, I read the first half thinking You know, I kind of agree, but it would 'trigger' most of my colleagues - then I started thinking Oh I wonder if you could build something into mypy like rust's Result<Ok, Err> (I realise that's not rust's invention, probably haskell's?, but it's rust that made me more familiar with the concept) - then I got there in the article, great!

"Typing failure modes, not just successful returns" or something would sound like a much more appealing article to a much wider audience.

There are no comments on this comment yet.