
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
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@haskell.org http://www.haskell.org/mailman/listinfo/libraries