Re: Maybe macros Wolfgang Corcoran-Mathe 28 Jun 2020 16:54 UTC

On 2020-06-27 14:55 -0400, John Cowan wrote:
> Sounds good to me.   So the list of new macros is maybe-and, maybe-or,
> maybe-and-let* (more verbose but clearer), and their either-* analogues.
> I'll add these to SRFI 189 when I have a chance.

Excellent.

> I don't think we need -each-in-list if we define -and to work that way: it
> returns the first Nothing/Left if there is one, or the last Just/Right if
> there isn't.  This is exactly how standard Scheme `and` works.  If there
> are no arguments, you get a wrapped #t.

Yes, exactly.  My purpose in mentioning the -each/-each-in-list idioms
was that their role is, I think, best played in SRFI 189 by the
-and/-or forms.

--
Wolfgang Corcoran-Mathe  <xxxxxx@sigwinch.xyz>

"In every work of genius we recognize our own rejected thoughts;
they come back to us with a certain alienated majesty."
--Ralph Waldo Emerson