#3377: [Patch] Support Python-style tuple sections
---------------------------------+------------------------------------------
Reporter: batterseapower | Owner:
Type: feature request | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.10.4
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by batterseapower):
I proposed list sections to Neil in an email, and I reproduce his reply
here:
{{{
I tried to think of why the list section wouldn't be useful. The
reason I decided is that for lists we have the singleton list (we lack
the singleton tuple) and list concatenation (there is no tuple concat,
but it could be added). Using these you can often encode list
sections:
map (:1)
So I think thats the reason no one needs list sections.
Thanks
Neil
}}}
Seems reasonable to me!
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3377#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs