How about this?
julia> function distance(point::Point)c
x = point.x
y = point.y
sqrt(x*x + y*y)
end- [julia-users] Help with writing a macro to for fetch, p... Andrew Simper
- Re: [julia-users] Help with writing a macro to for... Jameson Nash
- Re: [julia-users] Help with writing a macro to... Andrew Simper
- [julia-users] Re: Help with writing a macro to for... Ismael VC
- [julia-users] Re: Help with writing a macro to... Andrew Simper
- [julia-users] Re: Help with writing a macro to for... Nathaniel Nicandro
- [julia-users] Re: Help with writing a macro to... Andrew Simper
- [julia-users] Re: Help with writing a macr... Nathaniel Nicandro
- Re: [julia-users] Re: Help with writin... Stefan Karpinski
- Re: [julia-users] Help with writi... Jameson Nash
- Re: [julia-users] Help with w... Nathaniel Nicandro
- Re: [julia-users] Re: Help with w... Andrew Simper
- Re: [julia-users] Re: Help wi... Andrew Simper
- Re: [julia-users] Re: Hel... Yuuki Soho
