[Haskell-cafe] Can I use String without "" in ghci?

Albert Y. C. Lai trebla at vex.net
Sun Sep 1 18:21:43 CEST 2013


On 13-09-01 02:41 AM, Mateusz Kowalczyk wrote:
> It's a bit like asking whether you can do addition everywhere by just
> typing the numbers to each other (no cheating and defining number
> literals as functions ;) ).

To your horror, common math language does some of that.

When 3 and ½ are typed next to each other, i.e.,

   3½

it is addition.

See also
page 8 in http://www.cs.utexas.edu/users/EWD/ewd13xx/EWD1300.PDF
or
look for "Invisible operators" in 
http://www.cs.utexas.edu/users/EWD/transcriptions/EWD13xx/EWD1300.html





More information about the Haskell-Cafe mailing list