Timeline for A Union Data Type
Current License: CC BY-SA 4.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 12, 2022 at 17:34 | history | edited | TorbenPutkonen | CC BY-SA 4.0 |
added 330 characters in body
|
| Mar 12, 2022 at 16:35 | vote | accept | Jae Bradley | ||
| Mar 11, 2022 at 15:20 | comment | added | Jae Bradley |
Thanks for the background around the Pair data type - very informative. And good call with making the class final. The constructor is package-private (for testing, effectively) - do you not find that level of encapsulation sufficient? For the record, I never said there was anything wrong with if-statements and null-checks, just that I'd prefer to use the functional style that Optionals provide :)
|
|
| Mar 11, 2022 at 8:35 | history | answered | TorbenPutkonen | CC BY-SA 4.0 |