On 2014/03/06 3:47 AM, Federico Ariza wrote:
> Hello everybody
>
> Stupid simple question
> Is there a policy/tradition/convention to name unused variables inside the 
> code?

Not yet.

>
> Even better, if I see '''var''', can I replace it with '''_var''' and
> nobody is going to complain?

That might be a good convention.  I don't particularly like a bare "_" 
because it is uninformative and visually a bit jarring.  Even if a 
variable is unused, it is nice to have a slight hint in its name as to 
what it is.

Eric

>
> I use eclipse and it complains about that (I like that it warns me). I
> just wanted to know if I should just disable the warning when working
> on matplotlib.
>
> Federico
>


------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to