>
>
>>
> Actually, it doesn't seem entirely consistent with Julia conventions.
>
> The standard Julia convention (borrowed from Lisp/Scheme) is that a !
> suffix means that a function modifies *one of its arguments*.
>

The `plot!` command  is primarily `plot!(plt::AbstractPlot, args...;
kw...)`.  In this case it holds to convention.

I have a convenience `current()` which stores the most recently updated
AbstractPlot object in a global, so that any plotting command without a
leading AbstractPlot object gets it added implicitly.  (i.e. a call to
`plot!(...)` is really a call to `plot!(current(), ...)`).

I think this strategy is better than alternatives, and isn't too far from
accepted conventions.

Reply via email to