4 ms·
If you depend on the square root existing, why not have a (very short) positive_sqrt function? > A, B, C and D are Optionals, but at most two of them are nil.
by Dylan16807 8y ago
If you depend on the square root existing, why not have a (very short) positive_sqrt function?
> A, B, C and D are Optionals, but at most two of them are nil.
That sounds like something that's quite fragile and should either be wrapped up in its own type or not depended on.