From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 44856 invoked by alias); 19 May 2017 15:38:47 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 44825 invoked by uid 89); 19 May 2017 15:38:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=Feedback, H*r:Unknown X-HELO: blaine.gmane.org Received: from Unknown (HELO blaine.gmane.org) (195.159.176.226) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 19 May 2017 15:38:46 +0000 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dBjzE-0006ZE-GN for kawa@sourceware.org; Fri, 19 May 2017 17:38:40 +0200 To: kawa@sourceware.org From: Helmut Eller Subject: Re: list comprehension patterns Date: Fri, 19 May 2017 15:38:00 -0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) X-IsSubscribed: yes X-SW-Source: 2017-q2/txt/msg00071.txt.bz2 On Wed, May 17 2017, Per Bothner wrote: > Feedback welcome. It seems like an interesting idea. In particular, I like that these patterns naturally support scanning in parallel without zip. The need for zipping always feels like a shortcoming in Python/Haskell. It would be nice to have some analog to Python's set and dictionary comprehension not just list comprehensions. Maybe also a concise syntax way for things like "argmax". In general, I'm disappointed that Kawa moves away from prefix notation (i.e. I will not use it these things). Helmut