Proposal: Add singleton function to Data.List module

Jon Fairbairn jon.fairbairn at cl.cam.ac.uk
Tue Aug 13 08:49:22 UTC 2019


Tikhon Jelvis <tikhon at jelv.is> writes:

> Idioms like (:[]) are not intuitive at all.

Can you explain that? Once one knows that all infix operators
can be used in sections (+1), (++"foo"), etc, that notation
should be obvious, both in reading and writing. It’s much better
to use ideas that are uniformly usable throughout the language
and can be learned once than to have to learn numerous specific
words.

I’m -1 on the proposal, obviously.

-- 
Jón Fairbairn                                 Jon.Fairbairn at cl.cam.ac.uk



More information about the Libraries mailing list