JuliaLang/julia — Issue #552: More infix functions than +-*/%
Author: rtzui
Created: 2012-03-09 10:48:00+00:00
State: open

But I think rather than that infix functions would be nice. in haskell you can call `+(1,3)` (as in julia or lisp). You can write it infix `1 + 3`, but you can also force infix `f(a,b) ==a 'f' b`. (actually not ', but rather +0060)
I would be really cool if certain ranges of unicode could be used infix aswell, so one could define `∈`, use it like `∈([1,2,3],[2,3,9,10])` lisp style, or more intuitive `[1,2,3] ∈ [2,3,9,10]`.

```
define ≟(a,b)
a==b
end

>1≟2
false

>2≟2
true

define ∈(a,b)
--code
end

>1∈[1,3,4]
true
```

And maybe a infix "keword" would be cool aswell:

```
function foobar(x,y)
--code
end
```
5 ⍚foobar "qwertz" would be the same as foobar(5,"qwertz")