On Friday, February 7, 2014 2:09:19 PM UTC-6, Ismael VC wrote:
>
> Can I make one of my own functions, to use it as an infix notation 
> operator, like +, -, * etc.
>

At the moment (and for the forseeable future, as there is considerable 
disagreement) you can only provide methods for the existing infix operators 
(+, -, *, /, their dotted versions, |>, and a few others.) 
 

> Why the concat operator is * instead of "+", is this standard in Matlab?
>

It is not; this is pretty unique to Julia. You can search the lists, but 
here's one version:
https://groups.google.com/forum/#!topic/julia-dev/4K6S7tWnuEs
 

> And why can't we use "?" in identifiers? but we can use "!", I'd like to 
> write for example even?(5) instead of iseven(5), is_even(5)
>

It conflicts with the ternary operator. For instance:

a==b?5:70

is an unambiguous parse if "?" is disallowed in identifiers.

Reply via email to