Hi --
When should you use underscores to
separate words in variable names or
function definitions? Always?
Always or almost always.
I tend to use them always for
function definitions like:calculate_sum
extract_lines
....But the Ruby built in classes
do not always use them.
For example: IO#readlines
Why not: IO#read_lines ?
Maybe just because of the familiarity of readline from the readline
library.
Are there any guidelines on this
subject? How do think they should
be used?
A good style guide is:
http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention
David
ยทยทยท
On Tue, 2 Aug 2005, francisrammeloo@hotmail.com wrote:
--
David A. Black
dblack@wobblini.net