Please combine let* let letrec into super-let, (or simply let) for future consideration. I can not for my life see a reason for keeping "the other" "lets", other than the super-let (or simply let). Is there occassions why one would want "the other" "lets" other than super-let? If one word can mean three features, why not use the super version for brevity. Just a suggestion.
"narutocan...@gmail.com" <narutocan...@gmail.com> writes: > hi
> Please combine let* let letrec into super-let, (or simply let) for > future consideration. > I can not for my life see a reason for keeping "the other" "lets", > other than the super-let (or simply let). Is there occassions why one > would want "the other" "lets" other than super-let? If one word can > mean three features, why not use the super version for brevity. Just a > suggestion.
Pour moi, la grande question n'a jamais été: «Qui suis-je? Où vais-je?» comme l'a formulé si adroitement notre ami Pascal, mais plutôt: «Comment vais-je m'en tirer?» -- Jean Yanne
Pascal J. Bourguignon wrote: > "narutocan...@gmail.com" <narutocan...@gmail.com> writes:
>> hi
>> Please combine let* let letrec into super-let, (or simply let) for >> future consideration. >> I can not for my life see a reason for keeping "the other" "lets", >> other than the super-let (or simply let). Is there occassions why one >> would want "the other" "lets" other than super-let? If one word can >> mean three features, why not use the super version for brevity. Just a >> suggestion.
True, but I can imagine the OP thought about using the letrec semantics for everything (at least that's what I'd suggest).
What's a real-world (not examples as above) benefit of having a simple (let) that can not be achieved easily with (letrec)? Or is the main benefit of (let) to allow better optimization as its semantics is simpler?
Yours, Daniel
-- Done: Arc-Bar-Cav-Sam-Val-Wiz, Dwa-Elf-Gno-Hum-Orc, Law-Neu-Cha, Fem-Mal To go: Hea-Kni-Mon-Pri-Ran-Rog-Tou
On Aug 26, 6:19 pm, "narutocan...@gmail.com" <narutocan...@gmail.com> wrote:
> hi
> Please combine let* let letrec into super-let, (or simply let) for > future consideration. > I can not for my life see a reason for keeping "the other" "lets", > other than the super-let (or simply let). Is there occassions why one > would want "the other" "lets" other than super-let? If one word can > mean three features, why not use the super version for brevity. Just a > suggestion.
On Aug 26, 12:19 pm, "narutocan...@gmail.com" <narutocan...@gmail.com> wrote:
> hi
> Please combine let* let letrec into super-let, (or simply let) for > future consideration. > I can not for my life see a reason for keeping "the other" "lets", > other than the super-let (or simply let). Is there occassions why one > would want "the other" "lets" other than super-let? If one word can > mean three features, why not use the super version for brevity. Just a > suggestion.
The use of the various kinds of let, as opposed to a single super-let, can give the reader valuable clues about the nature of your program. Letrec has different scoping rules than let. Using super-let would confuse the reader about the intentions of the author.
On Aug 27, 9:54 am, Phil Bewig <pbe...@gmail.com> wrote:
> The use of the various kinds of let, as opposed to a single super-let, > can give the reader valuable clues about the nature of your program. > Letrec has different scoping rules than let. Using super-let would > confuse the reader about the intentions of the author.
I agree. It's good specialization and I believe that also leads to more efficient implementations.