#3962: Add flipped fmap
---------------------------------+------------------------------------------
Reporter: basvandijk | Owner:
Type: proposal | Status: new
Priority: normal | Component: libraries/base
Version: 6.12.1 | Keywords:
Os: Unknown/Multiple | Testcase:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Comment(by tibbe):
I'm not in favor of this proposal. Naming trivial compositions puts a
complexity tax on all users of the library and we end up with 2*''n''
operators instead of ''n'' operators and one `flip` function. It's trivial
to define the function locally or in a helper module.
To elaborate: At work some of our core APIs have gotten dramatically more
complex due to their maintainers allowing people, in interest to keep
their own code cleaner, to add small helper functions to those APIs. This
is now recognized as bad practice and discouraged with a call to "not fear
the semicolon"! (We use mostly imperative languages at work.)
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3962#comment:1>
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