[PATCH 3/3] Put nand, nor, nany and nall in Prelude
Edward Kmett
ekmett at gmail.com
Thu Feb 27 21:36:22 UTC 2014
and and or have been exposed in the Prelude for 22+ years. They were in by
Haskell 1.2 from 1992 at latest, and where possibly around earlier.
Any pain they cause is *long* since over.
Adding nand and nor for trivial compositions causes fresh pain for anyone
already using those names ... to save 3 characters.
-Edward
On Thu, Feb 27, 2014 at 10:13 AM, Alexander Berntsen
<alexander at plaimi.net>wrote:
> Again, if 'and' and 'or' are exposed without it being a problem, 'nand'
> and 'nor' could be too without causing a dramatic namespace pollution.
> ---
> Prelude.hs | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/Prelude.hs b/Prelude.hs
> index 6be7846..79e3868 100644
> --- a/Prelude.hs
> +++ b/Prelude.hs
> @@ -83,7 +83,7 @@ module Prelude (
> -- ** Reducing lists (folds)
> foldl, foldl1, foldr, foldr1,
> -- *** Special folds
> - and, or, any, all,
> + and, or, nand, nor, any, all, nany, nall,
> sum, product,
> concat, concatMap,
> maximum, minimum,
> --
> 1.8.3.2
>
> _______________________________________________
> Libraries mailing list
> Libraries at haskell.org
> http://www.haskell.org/mailman/listinfo/libraries
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/libraries/attachments/20140227/4915bc93/attachment.html>
More information about the Libraries
mailing list