I think the issue is that ++ is not an operator in julia.

On Mon, Jul 21, 2014 at 5:51 PM, Hans W Borchers <hwborch...@gmail.com>
wrote:

> I was interested to define "++" as operator for concatenating strings. I
> can define "+" for this purpose, but for "++" I get
>
>     julia> function ++(x::String, y::String)
>                x * y
>            end
>     ERROR: syntax: expected "(" in "function" definition
>
> I looked up "//" in Rational.jl, but did not see the difference in how to
> define this operation.
>

Reply via email to