Join Slack
Powered by
If the function is total and pure, then create a `...
# arrow
s
streetsofboston
02/06/2019, 3:11 PM
If the function is total and pure, then create a
sealed class OldEnoughQuestion
and make
NotOldEnoughForABoy
, etc as its subclasses. Have the function return instances of
OldEnoughQuestion
. And one of them should be
IsOldEnough
for a positive result 🙂
Open in Slack
Previous
Next