c = sqrt(a*a + b*b) where: a = retrieve_a() b = retrieve_b()That is equivalent to: c = (retrieve_a() ** 2 + retrieve_b() ** 2) ** 0.5
You immediately give the counter-argument? ^^Introducing a new keyword + whole new constructs gotta have substantial merit. The 2nd concept is perfect to me, some parentheses are no reason.
Another possibility would probably be the following, but it's not as compact and nice:
double c;
{
double a = retrieve_a();
double b = retrieve_b();
c = sqrt(a*a + b*b);
}
