News for hackers. Stuff that matters.
Re:The general value of typed functional programming lies in... by arcticbull on Monday February 24, 2020 @12:34PM (#22406174)
Exceptions are the worst because there's a hidden nested world of control flow you can't barely begin to reason about. Exceptions are a "comes-from" statement, like a "goto" but much worse.
Re:The general value of typed functional programming lies in... by fjp on Monday February 24, 2020 @01:30PM (#22406839)
This just gave me the thought... if exception stack traces came with the argument values of each method call, they would be 1000x more helpful. You wouldn't even have to attach a debugger and step through in many cases.
Re:The general value of typed functional programming lies in... by Izkata on Monday February 24, 2020 @01:37PM (#22406920)
I think they do in python, or at least can be retrieved. I know they show up in the stack trace on Sentry when an unhandled exception occurs.
Re:The general value of typed functional programming lies in... by fjp on Monday February 24, 2020 @01:44PM (#22407002)
Interesting, I guess they don't get spit out to the console by default.

Overall Python has really good stack traces, but the hyper-dynamic nature of so many common libraries does make it tough to grok sometimes.

I usually end up reaching for the PyCharm debugger which is fantastic anyway.

Re:The general value of typed functional programming lies in... by fulafel on Monday February 24, 2020 @01:52PM (#22407092)