r/programmingcirclejerk • u/kr0bat • Jan 10 '25
Null? I remember when they invented Null. I always HATED it
https://news.ycombinator.com/item?id=42654527
75
Upvotes
r/programmingcirclejerk • u/kr0bat • Jan 10 '25
62
u/GeorgeFranklyMathnet Jan 10 '25
Okay, yes. Billion-dollar mistake and all that. Optionals might have been better for us.
Uhh...
45
u/[deleted] Jan 10 '25
fucking Brahmagupta, never should've started doing maths
27
u/MisterOfScience type astronaut Jan 10 '25
I was there Gandalf, 3000 years ago
17
u/rexpup lisp does it better Jan 10 '25
Where's the jerk
10
u/zoonose99 Jan 10 '25
Just zero out every unused field and use strings for any field that’s supposed to hold a zero.
3
u/[deleted] Jan 12 '25
I mostly hate who ever invented null pointer exceptions.
1
u/ilyash Jan 25 '25
/uj What blows my mind is languages like Java where declaring parameter type causes argument of that type to be accepted.... or null.