Does anyone actually use std.string.capwords or

Jonathan M Davis jmdavisProg at gmx.com
Fri Jun 17 10:11:40 PDT 2011


On 2011-06-17 09:13, Jacob Carlborg wrote:
> On 2011-06-13 18:55, bearophile wrote:
> > Jonathan M Davis:
> >> But there are a number of functions in
> >> std.string which at least _look_ like their of limited usefulness, and
> >> if they're really not used, then they shouldn't be there.
> > 
> > What functions?
> > 
> > (I think in Python I have used capitalize only once so far.)
> > 
> > Bye,
> > bearophile
> 
> For example, it's used quite a lot in Ruby on Rails, converting names
> between upper and lowercase, between class and table names and so on.

It's looking like the verdict on this is that capitalize is definitely used 
and should be kept around but that capwords isn't worth keeping.

- Jonathan M Davis


More information about the Digitalmars-d mailing list