In non-competitive programming, we usually have the following logic:
boolean canIMarryher(){
return iLoveHer() && myParentsLoveHer() && shesHot() && sheSaidYes();
}
My question is, what if all of these (or some of these conditions) are Future [Boolean] in scala? Can I get a clear method like in the example above?
Update
As you know, in logic at runtime we will have “optimization”: immediately return when using &&and meet falseor using ||and meet true. Can I use it in Future [Boolean]?
Regards, Drew
source
share