Good practice

Carsten Schultz carsten@REDACTED
Fri Jul 18 22:37:11 CEST 2003


Hi!

On Fri, Jul 18, 2003 at 02:05:01PM -0500, Chris Pressey wrote:
> Is there a good reason that bindings are allowed to 'leak' out of a
> case..end?

<flame bait>
This is completely in line with Erlang being an imperative language
and expressions having side effects.
</flame bait>

:-)

> My language designer's intuition is telling me that the scoping rules
> for case..end should be more like those for fun..end.

I do not know, if I like the binding rules for `case', but they my be
handy.  `Fun' is of course different, because `fun's are constructed
for later use, while `case's are evaluated.

Carsten

-- 
Carsten Schultz (2:40, 33:47), FB Mathematik, FU Berlin
http://carsten.fu-mathe-team.de/
PGP/GPG key on the pgp.net key servers, 
fingerprint on my home page.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20030718/2f37045c/attachment.bin>


More information about the erlang-questions mailing list