Re: SRFI 245 extended last call Daphne Preston-Kendal (11 Jan 2024 07:42 UTC)
(missing)
(missing)
Re: SRFI 245 extended last call Arthur A. Gleckler (22 Jan 2024 04:38 UTC)
Re: SRFI 245 extended last call Marc Nieper-Wißkirchen (22 Jan 2024 07:07 UTC)
Re: SRFI 245 extended last call Chris Hanson (23 Jan 2024 00:10 UTC)
Re: SRFI 245 extended last call Marc Nieper-Wißkirchen (23 Jan 2024 06:36 UTC)
Re: SRFI 245 extended last call Dr. Arne Babenhauserheide (23 Jan 2024 06:46 UTC)

Re: SRFI 245 extended last call Chris Hanson 23 Jan 2024 00:10 UTC

On 1/22/24 02:06, Marc Nieper-Wißkirchen wrote:> More and more, I have
come to the conclusion that the
> addition of the local defines to Scheme added a wart to the language
> long ago.
Speaking for GJS and Hal, I'll point out that the reason for local
defines is pedagogical.  The similarity between top-level and local
defines makes it easy for students to grasp the concept without having
to explain yet another binding mechanism.  And since LETREC didn't exist
at that time, it was a sensible choice.

I'd argue that it's still valuable.  It's also something that both GJS
and I use regularly and I generally find preferable to LETREC.

I also don't find the argument about continuation behavior particularly
compelling.  I have been using internal definitions for 40 years without
once running into an issue with it; although admittedly I rarely use
internal definitions for anything other than procedure definitions.  It
might be simpler to restrict what kinds of values can be used in those
definitions than worrying about reused continuations.