From: "David A. Black" Date: 2005-08-02T23:02:45+09:00 Subject: Re: Style question: when to use underscores Hi -- On Tue, 2 Aug 2005, francisrammeloo@hotmail.com wrote: > 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 -- David A. Black dblack@wobblini.net