|
|
On 09/05/2013 09:43 PM, andrel wrote:
> obliatory reference:
> http://en.wikipedia.org/wiki/Whitespace_(programming_language)
"The idea of using whitespace characters as operators for the C++
language was facetiously suggested five years earlier by Bjarne Stroustrup."
Well, in a way, whitespace *is* an operator in Haskell. Or rather,
function application is an operator (it even has an operator
precedence), and function application is denoted by whitespace in Haskell.
In other way, inside a do-block, every end of line is replaced by the
">>" or ">>=" operator. So end of line is a bit like an operator.
(Although you can write explicit ";" characters if you prefer.)
Post a reply to this message
|
|