by dfranke · 18y ago · 0 comments
2 = 3
Which would now pass blithely though the parser only to raise a NoMethodError at run time because numbers do not implement an update method (At least, not in Ruby. Legend has it that this was legal in early versions of FORTRAN.
I recall a friend telling me a long time ago that REXX allowed this, but he no longer remembers and I can't verify.
f(g(h(x))) = n
and any time the first was mentioned, it would be substituted with the second, and vice versa, whichever allows the evaluator to simplify to a greater extent.Then, thinking further, are there any programming languages that rely on the sorts of math where f(f^-1(x)) is simplified to x without being evaluated?
Mathematica?
2+2 = 5!