Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: general observation about programming (Rustom Mody)
----------------------------------------------------------------------
Message: 1
Date: Sat, 27 Feb 2016 11:47:13 +0530
From: Rustom Mody <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] general observation about programming
Message-ID:
<caj+teocx18lxhacdwuuy-mw0vjhv-bpf_k_hvdmtjahcrx3...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Fri, Feb 26, 2016 at 11:11 PM, Rein Henrichs <[email protected]>
wrote:
> Pointfree is good for reasoning about *composition*. It can often be more
> readable than pointful code when the focus of the function is on
> composition of other functions. For example, take this function from Bird's
> *Pearls
> of Functional Algorithm Design*:
>
> boxes = map ungroup . ungroup . map cols . group . map group
>
And better if you read it in the right (ie left to right order)
boxes = map group >>> group >>> map cols >> ungroup >>> map ungroup
(From Control.Arrow)
Even better if the 3-char clunky >>> is reduced to the 1-char ?
map group ? group ? map cols ? ungroup ? map ungroup
(From Control.Arrow.Unicode)
[Those who find this unnatural/difficult/arcane/etc may like to check out
Unix-pipes (or English :-) ]
Some wishful thinking in the same direction
(uses python but python is not really relevant) :
http://blog.languager.org/2014/04/unicoded-python.html
Which to some extent I found works in Haskell :
http://blog.languager.org/2014/05/unicode-in-haskell-source.html
If only Haskell would go further!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.haskell.org/pipermail/beginners/attachments/20160227/c3290aa0/attachment-0001.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 92, Issue 37
*****************************************