SRFI 235 review
Wolfgang Corcoran-Mathe
(03 Sep 2022 13:51 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(03 Sep 2022 16:45 UTC)
|
Re: SRFI 235 review
John Cowan
(03 Sep 2022 17:21 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(03 Sep 2022 18:18 UTC)
|
Re: SRFI 235 review
Wolfgang Corcoran-Mathe
(04 Sep 2022 20:06 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(05 Sep 2022 06:31 UTC)
|
Re: SRFI 235 review
John Cowan
(05 Sep 2022 16:44 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(05 Sep 2022 17:58 UTC)
|
Re: SRFI 235 review
John Cowan
(05 Sep 2022 23:45 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(06 Sep 2022 06:27 UTC)
|
Re: SRFI 235 review
Wolfgang Corcoran-Mathe
(06 Sep 2022 19:46 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(06 Sep 2022 21:39 UTC)
|
Re: SRFI 235 review
John Cowan
(07 Sep 2022 01:46 UTC)
|
Re: SRFI 235 review
Per Bothner
(07 Sep 2022 05:04 UTC)
|
Re: SRFI 235 review
John Cowan
(07 Sep 2022 18:37 UTC)
|
Re: SRFI 235 review
Per Bothner
(07 Sep 2022 22:23 UTC)
|
Re: SRFI 235 review
John Cowan
(07 Sep 2022 23:29 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(09 Sep 2022 09:25 UTC)
|
Re: SRFI 235 review
John Cowan
(09 Sep 2022 19:54 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(09 Sep 2022 20:11 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(07 Sep 2022 06:29 UTC)
|
Re: SRFI 235 review Wolfgang Corcoran-Mathe (07 Sep 2022 18:02 UTC)
|
Re: SRFI 235 review
Marc Nieper-Wißkirchen
(07 Sep 2022 20:10 UTC)
|
Re: SRFI 235 review
Lassi Kortela
(07 Sep 2022 18:41 UTC)
|
Re: SRFI 235 review
John Cowan
(03 Sep 2022 17:17 UTC)
|
Re: SRFI 235 review
Arvydas Silanskas
(04 Sep 2022 08:35 UTC)
|
On 2022-09-07 08:28 +0200, Marc Nieper-Wißkirchen wrote: > > On Tue, Sep 6, 2022 at 5:39 PM Marc Nieper-Wißkirchen <xxxxxx@gmail.com> wrote: > > > >> there cannot be an > >> implementation, portable or not, on every Scheme implementation that > >> is allowed by R7RS. (As I tried to explain earlier, even access to > >> something like "%true-promise" would not help.) > > > > > > I continue to find your explanation incomprehensible, but I'll add a warning saying that on an unusual implementation of Scheme promises, it is not possible to treat promises as thunks; however, no such implementations are known. > > Wolfgang, have you understood my point? Maybe you can explain it > differently and better. If I'm understanding correctly, the problem is that, by the standard, promises don't form a type, and it may be nonsense to try to detect them with 'promise?', just it would be nonsense to try to define an 'isPromise' predicate in Haskell. Further, the implementation may not be able to do any better because of how it represents values/expressions ("there is no %true-promise"). So, for example, in an implicit-forcing implementation which completely hides promises, the following would return 1, because "everything is a promise": (lazy-or-procedure 1 2) But it should be a type error. This is the kind of problem that we run into if we try to distinguish a type that "isn't there". Is this something like what you mean? > In any case, I strongly suggest writing a SRFI dealing exclusively > with lazy evaluation and combinators for promises instead of making > SRFI 235 polymorphic. I think I agree. > I imagine that Wolfgang could be in the mood to write such a SRFI. It'll need research, but yes, I'd be willing to do that at some point. -- Wolfgang Corcoran-Mathe <xxxxxx@sigwinch.xyz>