If Java I could legally do this...
int num = 5;
final boolean isPositive;
if(five > 0) {
isPositive = true;
} else {
isPositive = false;
}
System.out.println("Is positive: " + isPositive); // Prints "Is positive: true"
I call these delayed definition constants.
Is there a way to create delayed definition constants in Scala?