Re: Zero Install
On Thu, Mar 24, 2011 at 12:26:47PM +, Peter Corlett wrote: I wonder if the Python inventers bothered to do any research into the merits of whitespace-sensitive languages. Although that may well just have resulted in Python programs ignoring everything after column 72 in the source. are modern versions of FORTRAN still column sensitive? -- Aaron J. Grier | Not your ordinary poofy goof. | agr...@poofygoof.com
Re: Zero Install
On 23 March 2011 13:35, Aristotle Pagaltzis pagalt...@gmx.de wrote: * Matthew King matthew.k...@monnsta.net [2011-03-23 11:35]: ... yes, the rest of the function looks like bollocks too. Comment the whole thing out. Put in a print line because you probably can't have empty functions in python. The magic incantation you want is `pass`: pass is a null operation -- when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed --- http://docs.python.org/release/2.5.2/ref/pass.html Did i understand this right? Python doesn't allow empty sub definitions? Is this hatefulness a consequence of the other hateful bits in python? Yves -- perl -Mre=debug -e /just|another|perl|hacker/
Re: Zero Install
On Thu, Mar 24, 2011 at 12:05:32PM +0100, demerphq wrote: Did i understand this right? Python doesn't allow empty sub definitions? Is this hatefulness a consequence of the other hateful bits in python? That would be empty anything that constitutes an attached block. If or else statements that don't have a body, functions that don't have a body, lambdas that don't have a body (though python's lambdas are very limited and a whole pool of hate all on their own), etc. -J
Re: Zero Install
On Thu, Mar 24, 2011 at 12:05:32PM +0100, demerphq wrote: [...] Did i understand this right? Python doesn't allow empty sub definitions? You can, if you like, consider pass to be the equivalent of the semicolon at the end of the null statement. Except that you can't have redundant null statements, since that is also Wrong and Against Nature. Python zealots are a funny bunch. Never trust a language where its users won't tell you that it sucks. Is this hatefulness a consequence of the other hateful bits in python? Yes, because the syntax is brittle and this wart helps catch certain classes of error that shouldn't have been possible to make in the first place. I wonder if the Python inventers bothered to do any research into the merits of whitespace-sensitive languages. Although that may well just have resulted in Python programs ignoring everything after column 72 in the source.
Re: Zero Install
On Thu, Mar 24, 2011 at 7:26 AM, Peter Corlett ab...@cabal.org.uk wrote: Never trust a language where its users won't tell you that it sucks. That's an excellent rule. -Eli
Re: Zero Install
On Wed, 23 Mar 2011 19:18:37 -0700, Joshua Rodman jrod...@hate.spamportal.net wrote: Zero Install is total CADT, along with autopackage. No idea what that means, but it's probably something bad, and I agree. However it *should* be good. It's just a typical Linux Clusterfuck of Fail. And you can TLA that for posterity. Matthew
Re: Zero Install
On Thu, Mar 24, 2011 at 11:14, Matthew King matthew.k...@monnsta.net wrote: On Wed, 23 Mar 2011 19:18:37 -0700, Joshua Rodman jrod...@hate.spamportal.net wrote: Zero Install is total CADT, along with autopackage. No idea what that means, but it's probably something bad, and I agree. Presumably this one: http://www.jwz.org/doc/cadt.html / http://www.jwz.org/blog/2003/02/the-cadt-model/ Cheers, Philip -- Philip Newton philip.new...@gmail.com
Re: Zero Install
* Matthew King matthew.k...@monnsta.net [2011-03-23 11:35]: ... yes, the rest of the function looks like bollocks too. Comment the whole thing out. Put in a print line because you probably can't have empty functions in python. The magic incantation you want is `pass`: pass is a null operation -- when it is executed, nothing happens. It is useful as a placeholder when a statement is required syntactically, but no code needs to be executed --- http://docs.python.org/release/2.5.2/ref/pass.html This is what happens when a language designer fails to heed Aristotle, and provides syntax for where a plot begins but none for where it ends. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/
Re: Zero Install
Zero Install is total CADT, along with autopackage. -josh