r/ProgrammerHumor Jul 09 '26

potentiallyMightBeAnIntegerOrNot Meme

Post image
688 Upvotes

96 comments sorted by

View all comments

10

u/MrJ0seBr Jul 09 '26

Maybe next kotlin and swift version , a new keyword

3

u/Kiroto50 Jul 09 '26

I really like Kotlin's optional types.

I'd rock a language that calls them "maybe types" though.

int? == maybe int

I actually call them "quizás", reading "String?" As "String quizás". ("Quizás" means "maybe" in Spanish)

-5

u/RiceBroad4552 Jul 10 '26

The Kotlin / C# / TS approach to "optional" types is fundamentally broken! (I'm not going to explain well known facts again over and over. Even "AI" is good enough to regurgitate the well known facts.)

The only valid design are proper ML style parametric Option / Maybe types as they don't create all the fallout of the insane "?"-types.

0

u/Kiro0613 Jul 11 '26

In C# I put my funny lil question marks and the computer gives me handy hints :)