June 13, 2011
On 2011-06-13 09: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.)

At the moment, I'm just asking about capitalize and capwords. The usefulness (or lack thereof) of various std.string functions has been discussed before, and I think that that it's clear that some of the less basic ones may need to either be removed or revamped, but they need to be looked at individually. But at the moment, capitalize and capwords are the only functions which I'm concerned with.

- Jonathan M Davis
June 17, 2011
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.

-- 
/Jacob Carlborg
June 17, 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
1 2
Next ›   Last »