Arc Forumnew | comments | leaders | submitlogin
2 points by rocketnia 4844 days ago | link | parent

If a where clause's binding expression ran after the body in an eager language, we couldn't use the value during the body. We'd be limited to using it from inside closures (manual laziness).


1 point by akkartik 4844 days ago | link

Any idea why the where bindings themselves would apply bottom to top?

-----

2 points by rocketnia 4843 days ago | link

I do have ideas, but none that make sense. :-p It does seem better to embrace top-to-bottom side effect ordering throughout all syntaxes of the language, with as few discontinuity points as possible.

But if we want to embrace that, it's probably hypocritical if we use prefix syntax for procedure application. ^_-

  ; runs b, then d, then a
  (a (b c) (d e))

-----