From: Michael Neumann Date: 2001-10-26T19:03:41+09:00 Subject: [ruby-talk:23416] Re: Bruce Eckel's opinion of Ruby Paul Prescod wrote: > Emiliano wrote: > > > >... > > > > That's not to say you can't enforce coding standards for other > > languages, but for Python it's been a clear decision to make it part > > of the language, and many people appearantly see a benefit to this. > > > > And you can't enforce a coding standard everywhere. > > The Python library adheres to a formal coding standard outlined by > Guido! I have to shift to that standard when I code for the standard > library. Really, Python solves *one* of many coding standard issues: > where to put the curly braces. To treat this as a major argument either > for or against Python is ridiculous in my mind. All "block-oriented" languages (e.g. not Pascal, C/C++ or Java, but Modula, Eiffel, Sather and Ruby) don't have the problem, too. You always have an open block which you have to end with an "end" statement. In C you've many choices: // (1) if ( cond ) { stmt } // (2) if ( cond ) { stmt } // (3) if ( cond ) { stmt } // (3) if ( cond ) { stmt } // or as one-liner: if ( cond ) { stmt } if ( cond ) stmt Whereas Ruby only supports: if cond stmt end # or the one-line version: if cond then stmt end Regards, Michael -- Michael Neumann merlin.zwo InfoDesign GmbH http://www.merlin-zwo.de