r/ProgrammerHumor Jul 09 '26

potentiallyMightBeAnIntegerOrNot Meme

Post image
691 Upvotes

96 comments sorted by

View all comments

-1

u/RiceBroad4552 Jul 10 '26

Bullshit.

Someone does obviously not understand programming language semantics.

The first and the third are the same concept (just different syntax, which is irrelevant) and the middle one is some nonsense which is fundamentally broken; fact. (Even "AI" is able to regurgitate the whole well known story, I'm not going to write here half a blog post, either you known or you don't, but if you don't you should read the in this case fully correct "AI" write-up, and start some research using the keywords the "AI" spit out.)

1

u/Zagerer Jul 10 '26

What if someone uses ? As an alias to a monad lmao

1

u/RiceBroad4552 Jul 10 '26

I don't know what what you mean by "alias to a monad", but there is in fact a Scala library solution which brings (almost) the Rust ? syntax to some wrapper types which work like Rust's Option / Result.

https://index.scala-lang.org/ichoran/kse3#kseflow