From: Andrea Bernardini <andrebask@gmail.com>
To: Per Bothner <per@bothner.com>
Cc: Kawa mailing list <kawa@sourceware.org>
Subject: Re: list comprehension patterns
Date: Thu, 18 May 2017 22:58:00 -0000 [thread overview]
Message-ID: <CAPFJfsv1_Btp77Mzo2LZDrNeFSEy95x3tgO8m8VVeT9qKg5_uA@mail.gmail.com> (raw)
In-Reply-To: <b2a8af4c-ccd2-0d32-ea2a-bba00277fd36@bothner.com>
Quite interesting article, I found some minor typos/issues
* Where you say Kawa-specific "|" do you mean Kawa-specific "!" ?
* There is a repetition in this sentence "A "scan context" is is an expression"
* "and then result sequence is "spliced" into its context." You meant
"and the result"?
* Another repetition and the sentence is not completely clear "When in
the scope of two more more distinct scan variables then are scanned
"in parallel""
* I think what you call outer join should be called Cartesian product
or cross join
Regarding the hypothetical filtering syntax
(! [a ...] A #!if (P a))
what about using one of 'when', the first is inspired by the single
branch if in Racket (where the 'if' keyword is replaced by when).
(! [a ...] A when (P a))
Also 'where' or 'on' could be possibilities.
The ellipsis syntax is nice, however when more scan patterns are
nested together can be confusing, have you considered using two dots
instead of three
#|kawa:31|# (define (fun2 [[x ..] ..] [y ..])
#|.....32|# [[(+ x y) ..] ..])
just thoughts
Cheers,
Andrea
On 17 May 2017 at 18:00, Per Bothner <per@bothner.com> wrote:
> I posted a new blog article:
> http://per.bothner.com/blog/2017/list-comprehension-patterns/
>
> Feedback welcome.
> --
> --Per Bothner
> per@bothner.com http://per.bothner.com/
next prev parent reply other threads:[~2017-05-18 22:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-17 17:00 Per Bothner
2017-05-17 23:31 ` Sudarshan S Chawathe
2017-05-20 20:56 ` Per Bothner
2017-05-18 22:58 ` Andrea Bernardini [this message]
2017-05-20 21:03 ` Per Bothner
2017-05-19 15:38 ` Helmut Eller
2017-05-20 20:09 ` Per Bothner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPFJfsv1_Btp77Mzo2LZDrNeFSEy95x3tgO8m8VVeT9qKg5_uA@mail.gmail.com \
--to=andrebask@gmail.com \
--cc=kawa@sourceware.org \
--cc=per@bothner.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).