in reply to How do you pronounce variable names?
If I'm showing code to someone, there's usually no need to pronounce the sigil at all (e.g. "friends has 2 elements"). I'd probably be more likely to say "scalar" and "array" for "$" and "@" in this situation. I might even call the variable by its value instead of by its name (e.g. "Then I 'draw' the circle." for $form->draw()).
If I'm dictating code, completeness and clarity is important, so I'd specify the symbols by name (e.g. "dollar friends equal 2 semicolon.").
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How do you pronounce variable names?
by holli (Abbot) on Feb 18, 2008 at 17:02 UTC | |
by zentara (Cardinal) on Feb 18, 2008 at 19:24 UTC | |
by parv (Parson) on Feb 18, 2008 at 17:39 UTC | |
by ikegami (Patriarch) on Feb 19, 2008 at 04:02 UTC |