| ... | @@ -37,3 +37,26 @@ Also unambiguous, but inconsistent with the use of `[]` for lists. |
... | @@ -37,3 +37,26 @@ Also unambiguous, but inconsistent with the use of `[]` for lists. |
|
|
This doesn't even require any new syntax, because `.#` is a valid infix operator.
|
|
This doesn't even require any new syntax, because `.#` is a valid infix operator.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Use of '!'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A more useful definition of '!' would be
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
f ! x = x `seq` f x
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
where '!' has the exact same fixity as function application. so
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
foo !x !y
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
could be used to call foo with x and y evaluated strictly beforehand.
|
|
|
|
|
|
|
|
|