Thanks a lot, as well as Matt Bauman.
On Wednesday, October 7, 2015 at 9:11:50 PM UTC+2, Stefan Karpinski wrote: > > $ is used for expression interpolation (see metaprogramming in the > manual), so you need the parens to make it clear that you're not trying to > do interpolation. > > On Wednesday, October 7, 2015, cheng wang <wac...@gmail.com <javascript:>> > wrote: > >> Thanks. Still, why + and $ are different in this case ? >> >> On Wednesday, October 7, 2015 at 9:05:10 PM UTC+2, Seth wrote: >>> >>> Surround it by parens: >>> >>> julia> ($)(x::Int, y::Int) = x+y+5 >>> ... >>> julia> ($)(5,7) >>> 17 >>> >>> On Wednesday, October 7, 2015 at 11:39:03 AM UTC-7, cheng wang wrote: >>>> >>>> Hello everyone, >>>> >>>> I try to do $(x,y)=something, it says: syntax: invalid assignment >>>> location >>>> while +(x,y)=something is ok. >>>> >>>> Is there any speciality of $ operator? >>>> >>>> Best, >>>> Cheng >>>> >>>