Wither Self
Vlad Dumitrescu
vlad_dumitrescu@REDACTED
Wed Sep 10 16:07:58 CEST 2003
From: "Richard A. O'Keefe"
> I presume that Joe's reason for wanting this is to handle the quite
> common case where you need a recursive function that can refer to a
> local variable.
Yes, of course.
> In short, there are cases where locally defined recursive functions
> are harder to read than the alternatives, and, based on Haskell and
> ML experience, there are cases where they are much easier to read than
> the alternatives.
I guess I am biased by some real-life examples I met, where the inlined function
was a real monster and should have been split in 2 or maybe 3 different simpler
functions, the result still being easier to read than the original. Think just
of 20 lines with an indentation of 50+ chars... *brrr*
regards,
Vlad
More information about the erlang-questions
mailing list