Not logged in
Log in now
Create an account
Subscribe to LWN
An unexpected perf feature
LWN.net Weekly Edition for May 16, 2013
A look at the PyPy 2.0 release
PostgreSQL 9.3 beta: Federated databases and more
LWN.net Weekly Edition for May 9, 2013
I'd think that the function isn't all that generic, when would you want to use it (outside of
the sysfs braindamage)? Sure, its definition might sound generic, but I wouldn't think you
should use it often anyway.
The last things through the 2.6.26 merge window
Posted May 8, 2008 15:16 UTC (Thu) by jzbiciak (✭ supporter ✭, #5246)
Hmm... It seems like removing optional trailing newlines early ought to be more general and
robust. After all, perl has had chomp() for what, a decade or more?
Posted May 8, 2008 16:37 UTC (Thu) by bronson (subscriber, #4806)
As of this year, I think chop is 20 years old (+/- 1 year). So this is what the future looks
like... not very impressive. I thought we'd all be using CORBA-connected dataflow languages
Posted May 8, 2008 16:47 UTC (Thu) by jzbiciak (✭ supporter ✭, #5246)
Well, there's chop() and there's chomp(). Methinks chomp() is more appropriate to handle
optional newlines. :-)
Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds