3 ms·
Even then it doesn't matter fully. There are some languages with supported data types where you can actually write the equivalent of. x = 2 y = 2 1.upto
by 3pt14159 16y ago
Even then it doesn't matter fully. There are some languages with supported data types where you can actually write the equivalent of.
x = 2
y = 2
1.upto 100 do
x = x ** (1 / 2)
end
1.upto 100 do
x = x ** 2
end
x == y # => true
because it handles the math by only evaluating the operations at the very end.
- jules 16y agoWhich ones? It honestly seems unlikely to me that this would work well in practice.