News for hackers. Stuff that matters.
Re:Programming Idioms by suixo on Thursday September 26, 2019 @11:27AM (#21081815)
I love the "check if integer addition will overflow" in Python:

def adding_will_overflow(x, y): return False

I have no idea if it's actually true but I find that funny.

Re:Programming Idioms by ORioN63 on Thursday September 26, 2019 @02:26PM (#21083881)
Yeah, integers can't overflow. It will just use all of your memory.

Unless you're using a C bind, like numpy.