Seems like you have a habit of adding a space between the function name and 
the opening parenthesis. Julia is sometimes sensitive to extra space, so if 
you do this in the wrong context, you might get subtle bugs.

Especially macros have both a statement (parentheses less form) and a 
function form (with parentheses), and if you add the space, you will get 
the statement form. I think you are lucky that in the case of the @assert 
macro, it does not make any difference.

See: #7398 <https://github.com/JuliaLang/julia/issues/7398> and #7232 
<https://github.com/JuliaLang/julia/issues/7232>

kl. 19:25:41 UTC+2 fredag 15. august 2014 skrev Neal Becker følgende:
>
> As another learning exercise, I converted my python 1-d linear 
> interpolator 
> module to julia.  Any suggestions/comments on improvements? 
>
> https://gist.github.com/anonymous/19526d1455ba7dc9f48f 
>
>

Reply via email to