[-] twoframesperminute@mastodon.social -1 points 11 months ago

@Chais from module import \* should almost never be used anyway, so...

[-] twoframesperminute@mastodon.social -4 points 11 months ago

@BeardedGingerWonder will you adapt your time to be 7 hours later?

Thought so.

[-] twoframesperminute@mastodon.social 0 points 11 months ago* (last edited 11 months ago)

@sugar_in_your_tea But isn't all that possible in Python? Don't monads cover exactly what you want? Why does it need to be implemented some different way?

Also, divide by zero should be data just as well. Failing to program around having nothing to divide by is not a reason to have a program panic.

Also, having two systems for largely the same behavior doesn't seem to improve usability and clarity, in my opinion.

@sugar_in_your_tea I'm by far not qualified to discuss this in depth. But it seems to me that almost every function call ever can fail. Therefore, do you need to do this with every single function call?

That seems terribly inefficient and bloated. How is that readable for anyone?

@sugar_in_your_tea The idea of exceptions is that you can choose when to deal with them. So if you want to deal with them immediately,
nothing is stopping you.

If you think handling errors with every function call explicitly is easier, I guess you're using very few functions. For the project I'm working on, your proposal would probably double the number of lines. Thanks, but no thanks.

view more: ‹ prev next ›

twoframesperminute

joined 1 year ago