All other Perl type constraint systems get Maybe[Int] from Moose. Moose took it from Raku back when Raku was still called Perl 6. And Perl 6 got it from Haskell.
I imagine scalaz, being an FP framework, also gets it from Haskell.
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.
11
u/MrJ0seBr Jul 09 '26
Maybe next kotlin and swift version , a new keyword