[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: a case for multiple environments - expressing modules more naturally
- From: steve donovan <steve.j.donovan@...>
- Date: Fri, 13 Aug 2010 08:24:22 +0200
On Fri, Aug 13, 2010 at 8:08 AM, Shawn Fox <shawnkfox@gmail.com> wrote:
> cleaner syntax instead of having to assign to a magic variable. loadin is a
> great solution for this when your code exists in a separate file, but there
> ought to be a way to do this using a control block as well, perhaps a "doin"
> statement:
Well, we were briefly shown in env do .. end. It could still be
revived as appropriate sugar over _ENV manipulation.
Roberto has said that many uses of _ENV _should_ be ugly, because it
indicates that environment hacking is happening.
But the common case of creating a module should be as clean and
intuitive as possible.
steve d.