Timeline for What are the pros and cons of an Option type in comparison to nullable types?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17 at 5:48 | comment | added | MisterMiyagi |
Just a heads up that this answer is surprisingly hard to read if one isn’t familiar with the ?. operator. I started out reading it as a? . b()? . c() , got confused by this, frantically searched for users's answer, realised it didn’t talk about any x?.y at all; only on revisiting this answer did it click that ?. is one operator here. Perhaps calling that out with an introductory sentence that names the operator and language would be helpful.
|
|
May 17, 2023 at 23:11 | comment | added | naffetS |
In some languages like C#, you can do a?.b().c() , as the ?. eats up the whole rest of the expression.
|
|
May 17, 2023 at 15:45 | history | answered | ice1000 | CC BY-SA 4.0 |