Pronunciation
From HaskellWiki
(Difference between revisions)
(add /=, move -< to nearer related symbols) |
|||
| Line 11: | Line 11: | ||
| <hask> -> </hask> | | <hask> -> </hask> | ||
| maps to, to | | maps to, to | ||
| - | |||
| - | |||
| - | |||
|- | |- | ||
| <hask> = </hask> | | <hask> = </hask> | ||
| Line 20: | Line 17: | ||
| <hask> == </hask> | | <hask> == </hask> | ||
| equals | | equals | ||
| + | |- | ||
| + | | <hask> /= </hask> | ||
| + | | not-equals | ||
|- | |- | ||
| <hask> => </hask> | | <hask> => </hask> | ||
| Line 29: | Line 29: | ||
| <hask> <- </hask> | | <hask> <- </hask> | ||
| drawn from, from | | drawn from, from | ||
| + | |- | ||
| + | | <hask> -< </hask> | ||
| + | | | ||
|- | |- | ||
| <hask> ++ </hask> | | <hask> ++ </hask> | ||
Revision as of 20:58, 8 January 2008
Some notes for beginners on how to pronounce those strange Haskell operators etc.
This is just a rough start to this page. Obviously needs more work.
This can be a table with formal and informal ways of saying various operators and code snippets such as
| Symbol | Pronounciation |
|---|---|
| -> | maps to, to |
| = | is |
| == | equals |
| /= | not-equals |
| => | is a witness for, implies |
| . | dot (could be used anywhere, but especially in, for example, Data.Char.ord), ring, compose (for example, negate . (+1)), (silent) (for example, forall a. (Num a) => a) |
| <- | drawn from, from |
| -< | |
| ++ | append |
| >>= | bind |
| >> | then |
| \ | lambda |
| : | cons |
| [] | nil |
| () | unit |
| Example | Pronounciation |
|---|---|
| f :: Int -> Int | f has type Int to Int |
should we add informal, possibly bad suggestions like "then", "is", "gets"?
