I was just taking a look into clojure and found the following line of code on an example page
(filter even? [1 2 3])
While this is fairly standard code i am amazed by the fact, that they use a '?' to make the predicate easier to read.
Is it also possible to get haskell to accept this as a function name? So far i found https://wiki.haskell.org/Unicode-symbols which unfortunately does not contain '?'.
Don't do this.
Gross hack: ? is not a valid identifier character, but ʔ is.
Don't use the following.
evenʔ :: Num a => a -> Bool
evenʔ 0 = True
evenʔ 1 = False
evenʔ n = evenʔ (n - 2)
(ʔ, of course, is U+0294 LATIN LETTER GLOTTAL STOP, which, appearances aside, is completely unrelated to U+003F QUESTION MARK.)
Did I mention you shouldn't do this?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With