Re: HTTP error codes hga@xxxxxx (03 Aug 2020 16:47 UTC)
Re: HTTP error codes John Cowan (03 Aug 2020 17:04 UTC)
Re: HTTP error codes John Cowan (03 Aug 2020 17:07 UTC)
Complexity of SRFI 198 interface and naming Lassi Kortela (03 Aug 2020 17:15 UTC)
Re: Complexity of SRFI 198 interface and naming hga@xxxxxx (03 Aug 2020 17:52 UTC)
Re: Complexity of SRFI 198 interface and naming Lassi Kortela (03 Aug 2020 18:12 UTC)
Re: Complexity of SRFI 198 interface and naming John Cowan (04 Aug 2020 15:52 UTC)
Re: Complexity of SRFI 198 interface and naming hga@xxxxxx (04 Aug 2020 16:24 UTC)
Re: Complexity of SRFI 198 interface and naming Lassi Kortela (04 Aug 2020 16:36 UTC)
Re: Complexity of SRFI 198 interface and naming John Cowan (05 Aug 2020 02:30 UTC)
Re: Complexity of SRFI 198 interface and naming John Cowan (03 Aug 2020 17:53 UTC)
Re: Complexity of SRFI 198 interface and naming Lassi Kortela (03 Aug 2020 18:06 UTC)

Re: Complexity of SRFI 198 interface and naming hga@xxxxxx 03 Aug 2020 17:52 UTC

> From: Lassi Kortela <xxxxxx@lassi.io>
> Date: Monday, August 03, 2020 12:15 PM
>
>> If there's one or more args, the lambda is called with them.  But
>> we were planning on a convention of having most lambda values not
>> take any args to avoid complexity, so what should the above do when
>> the value is a lambda and there are no args?  Being able to get the
>> lambda could be useful; maybe have a special arg like #t call it
>> without args?  That's ugly, have only just now been thinking about
>> this, so I solicit suggestions.
>
> I'd vote to do nothing special.
>
> People who want to make a foreign error object with a lambda as one of
> the values can wrap it in (lambda () the-lambda-i-want-to-return). Would
> this cause a problem in some situation?

Or just drop the ". args" convenience feature, and always return
whatever's there, lambda or not.  Based on whatever is specified in
the SRFI's use of lambdas for localization, or the conventions of the
error-set collection, the user, IDE, whatever then calls the lambda
with the correct arguments, if any.

Making the API regular is more important than a bit of convenience,
especially given how fundamental lambdas are to Scheme.

> [ A question for John. ]

- Harold