Technically it returns `nothing` which is something – just a something we've all agreed to treat like nothing. There is no way in Julia to return a value and make it invisible. Well, actually there is: define a new type that doesn't print anything when you display it and return any a of that type. But you can't return 1 and make it not print without making 1 not print in general.
> On Jan 27, 2015, at 7:14 AM, Wolfram <[email protected]> wrote: > > Hi, Tamas Papp. > > in R `invisible()` return something, in Julia `@invisible()` return nothing, > > In R: > test = function() invisible(1); > test() > xx = test() > xx == 1 > > It seems that there is no similar function or macro in Julia for now.
