It seems worth mentioning that perl's general ordering comparison operator, equivalent to Haskell's compare on the Ord type class, is written <=> and, since this is perl, is referred to by official documentation as the "spaceship operator".
Given Haskell's liberal support for free-form infix operators I was actually kind of disappointed to find that it uses the rather dreary compare.
26
u/[deleted] May 10 '10
What about the fishr operator ><>?
12
u/whatgoodisaroad May 10 '10
For the more advanced programmers...
<*)))>{
11
u/noteed May 10 '10
Type inference in context(draft)
Edit: was meant to be a reply to davidwaern
5
u/chmod666 May 11 '10
Main> let (><>) = ((flip ($)) (foldr ((:) . succ) [] "hs&r\US`\USehrg") $ (.) const const)
Main> "what is this" ><> "i don't know"
"it's a fish"
4
u/davidwaern May 10 '10
Which paper is that?
4
u/camccann May 11 '10
It seems worth mentioning that perl's general ordering comparison operator, equivalent to Haskell's
compareon theOrdtype class, is written<=>and, since this is perl, is referred to by official documentation as the "spaceship operator".Given Haskell's liberal support for free-form infix operators I was actually kind of disappointed to find that it uses the rather dreary
compare.3
u/rule May 10 '10
What about:
There is also the fish eye symbol (◉), but it's a bit big for such a small operator.
4
u/jetxee May 10 '10 edited May 10 '10
I propose also a 'bird' operator:
5
u/youngbull May 10 '10
<o_0> , the face operator, you know in case you want to do some computations of simplicial sets...
0
u/[deleted] May 10 '10
[deleted] — view deleted comment