Comment

Comment by PaulHoule

I can't get it why people would prefer to add "?" to everything instead of just having exceptions which automate that behavior.

In the bad old days of C there were two kinds of programs: programs without correct error handling, and programs where half the loc are unhappy paths that do what exceptions do... with a huge amount of work.

Today people are repeating the same mistakes of the past, putting a "?" on everything is a lot better than what you had to do in C, but why do that when you can just use a language with exceptions?

It is like somebody showed cavemen fire (exceptions) and they decided it wasn't worth anything and went to go screw around with other things.

parent PaulHoule 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton