3 ms·
Generics will let you define an Option[any], just hope that your code reviewers don't decide that this isn't goey, and you should "keep it simple" or "just use
by kubb 5y ago
Generics will let you define an Option[any], just hope that your code reviewers don't decide that this isn't goey, and you should "keep it simple" or "just use a pointer" or something in that vein.
There won't be overloading * for getting the value inside and overloading bool conversion to check if the value is there. Still, it's an improvement.