[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: "with" statement in Lua?
- From: Norman Ramsey <nr@...>
- Date: Tue, 13 Jul 1999 17:13:05 -0400
I've programmed in both Pascal and Modula-3 using the `with' statement.
Consensus seems to be that the M3 version (which is like `let' binding
in functional languages) is not too bad, whereas the Pascal version
is best avoided. The key is the M3 `with' makes the names of
the new identifiers explicit, whereas in Pascal they are implicit.
Standard ML's `open' suffers from the same problem: you introduce a
whole host of names, from you know not where...