From: Mathieu Bouchard Date: 2001-12-25T04:56:54+09:00 Subject: [ruby-talk:29405] Re: upper case to lower On Sun, 23 Dec 2001, Marko Schulz wrote: > > > >> (n = f.dup).downcase! and File.rename(File.join(X, f), File.join(X, > > And it uses the fact that String#downcase! returns nil if no > > change occurred, to rename only files which contain upper > > cases. > It is code like that, that is giving Perl a bad reputation. It works, > but it does not communicate what it does. for communication to happen, you must be willing to listen. you have to know the language too, but those are the same conditional AND/OR operators that are in LISP and C and Java and many other popular languages; i don't know how you could ignore them. I remember a guy coming to this mailinglist saying the "||=" operator (conditional assignment) is not clear. What he probably meant is "i have not seen such a thing in Python, and Python is so great that there has to be a good reason ||= is not in it; therefore ||= is bad". ________________________________________________________________ Mathieu Bouchard http://hostname.2y.net/~matju