Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Ron_Adam
On Thu, 7 Apr 2005 17:49:39 -0400, "Terry Reedy" <[EMAIL PROTECTED]> wrote: >"Ron_Adam" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> Python has one obvious best way to do things. > > >More exactly, 'should preferably have' rather than 'has'. > >> Meaning that the most obvious a

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Philippa Cowderoy
On Thu, 7 Apr 2005, Frank Wilde wrote: Continuations rule! While continuations are a very interesting abstraction, the improvement of structured programming was to be able to prove properties of your programs in time linear to the size of the program instead of quadratic. I don't see how giving arg

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Terry Reedy
"Ron_Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Python has one obvious best way to do things. More exactly, 'should preferably have' rather than 'has'. > > Meaning that the most obvious and clearest way, the way that comes to > mind first, will in most cases, also be the

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Terry Reedy
"François Pinard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >To summarize, instead of saying "Python has only one way to do it", As I explained in response to Aahz, what Tim Peters wrote was that Python 'should preferably have only one obvious way to do it'. Omission of the

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Terry Reedy
"Aahz" <[EMAIL PROTECTED]> > Pinard <[EMAIL PROTECTED]> wrote: >>Sure, of course. Yet, our friendly argument is sliding away from was it >>originally was. The point was about not asserting in this forum that >>Python "has only one way to do it", because this is not true anymore. >> >>The princ

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> >> I'll agree that Python currently has many examples of more than one >> way to do things (and even Python 3.0 won't remove every example >> [...]). But I won't agree that Only One Way has bee

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Frank Wilde
Ulrich Hobelmann wrote: > alex goldman wrote: >> I personally think GOTO was unduly criticized by Dijkstra. With the >> benefit of hindsight, we can see that giving up GOTO in favor of >> other primitives failed to solve the decades-old software crisis. > The fault of goto in imperative languages

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Michael Spencer
Steve Holden wrote: Not at all - we just apply the same division techniques to the buffer space until we can map the pieces of cake one-to-one onto the buffers. That technique can be applied to layer cakes, but not all real cakes. Michael -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Steve Holden
Robin Becker wrote: Greg Ewing wrote: Scott David Daniels wrote: Aahz wrote: You just can't have your cake and eat it, too. I've always wondered about this turn of phrase. I seldom eat a cake at one sitting. You need to recursively subdivide the cake until you have a piece small enough to fit in

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Robin Becker
Greg Ewing wrote: Scott David Daniels wrote: Aahz wrote: You just can't have your cake and eat it, too. I've always wondered about this turn of phrase. I seldom eat a cake at one sitting. You need to recursively subdivide the cake until you have a piece small enough to fit in your input buffer.

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Ron_Adam
On 7 Apr 2005 11:11:31 -0400, [EMAIL PROTECTED] (Aahz) wrote: >You're conflating two different things: > >* Whether Python currently has only one way to do things > >* Whether Python has a design goal of only one way to do things > >I'll agree that Python currently has many examples of more than o

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread François Pinard
[Aahz] > I'll agree that Python currently has many examples of more than one > way to do things (and even Python 3.0 won't remove every example > [...]). But I won't agree that Only One Way has been abandoned as a > design principle. To summarize, instead of saying "Python has only one way to do

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Bill Mill
On Apr 7, 2005 1:15 AM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Scott David Daniels wrote: > > Aahz wrote: > > > >> You just can't have your cake and eat it, too. > > > > I've always wondered about this turn of phrase. I seldom > > eat a cake at one sitting. > > You need to recursively subdivide

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> [François] >>> >>>Many of us are using Python today, week after week, year long. So >>>let's be pragmatic. Python is what it became and now is. Let's not >>>define it as a memory from the pa

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Greg Ewing
Scott David Daniels wrote: Aahz wrote: You just can't have your cake and eat it, too. I've always wondered about this turn of phrase. I seldom eat a cake at one sitting. You need to recursively subdivide the cake until you have a piece small enough to fit in your input buffer. Then the atomicity o

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Greg Ewing
"Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> It's just that I'm having a hard time matching that quote Sunnan> to what I though python was about. I thought boring code Sunnan> was considered a virtue in python. There's a difference between unsurprising and boring. The coffee

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread John J. Lee
Simon Brunning <[EMAIL PROTECTED]> writes: > On Apr 6, 2005 4:42 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > > I've always wondered about this turn of phrase. I seldom > > eat a cake at one sitting. > > Clearly you're just not trying. ;-) :-))) John -- http://mail.python.org/mailma

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread bruno modulix
Sunnan wrote: Aahz wrote: (snip) print "foo is", foo Is the space added automatically? (Like awk does, if you add a comma.) Yes. But you can also format it how you like: print "foo is %s and that's a good news, my friends" % foo -- bruno desthuilliers python -c "print '@'.join(['.'.join([w[:

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Simon Brunning
On Apr 6, 2005 4:42 PM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > I've always wondered about this turn of phrase. I seldom > eat a cake at one sitting. Clearly you're just not trying. ;-) -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.pyt

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Scott David Daniels
Aahz wrote: You just can't have your cake and eat it, too. I've always wondered about this turn of phrase. I seldom eat a cake at one sitting. -Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-06 Thread François Pinard
[Aahz] > [François] > >Many of us are using Python today, week after week, year long. So > >let's be pragmatic. Python is what it became and now is. Let's not > >define it as a memory from the past nor as a futuristic dream. > You're free to continue using 1.5.2. [...] Sure, of course. Yet

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Michele Simionato
Sunnan: > The python code I've read so far has looked like that. Not > type declarations, but lng class declarations. What do you mean? Lots of repetitive "self.variable=variable" in the __init__ method? Use of classes when you would use closures? Or maybe you are comparing with CLOS classes,

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Ville Vainio
> "Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> Ville Vainio wrote: Sunnan> Also, Guido recently urged people to explicitly write Sunnan> recursions rather than to use reduce - which I thought was Sunnan> completely in line with what I've seen as python's goals:

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Sunnan
Ville Vainio wrote: Boring code is code that numbs your senses with constant flow of boilerplate crap, memory management and redundant type declarations and general blah blah that you skip when you are trying to figure out what a piece of code does. The python code I've read so far has looked like

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-06 Thread Ville Vainio
> "Sunnan" == Sunnan <[EMAIL PROTECTED]> writes: Sunnan> It's just that I'm having a hard time matching that quote Sunnan> to what I though python was about. I thought boring code Sunnan> was considered a virtue in python. ("Explicit is better Sunnan> than implicit", "sparse i

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Ivan Van Laningham
Hi All-- Aahz wrote: > Given the tension of the various > requirements, I think that Python has broken "only one way" as little as > possible, with the full intention of getting closer to its ideal when the > time comes to break backward compatibility. > I wrote my mayalib package under 1.3.0.

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Aahz] >> =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >>> >>>No doubt it once was true, but I guess this ideal has been >>>abandoned a few years ago. My honest feeling is that it woul

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread Sunnan
T.D. Lassagne wrote: Please consider joining the International Sarcasm Society. Our motto is "Like We Need YOUR Support". I *recognize* sarcasm; I just don't think it's very funny. Now parody, which this turned out to be, I can appreciate. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-05 Thread T.D.Lassagne
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Artie Gold wrote: > > Torsten Bronger wrote: > >> The whole text seems to be a variant of > >> . > >> > >> Tschö, > >> Torsten. > >> > > Ya think? ;-) > > Heh. I was glad that Tor

Re: Lambda: the Ultimate Design Flaw

2005-04-03 Thread Sunnan
Artie Gold wrote: Torsten Bronger wrote: The whole text seems to be a variant of . TschÃ, Torsten. Ya think? ;-) Heh. I was glad that Torsten pointed it out; I didn't get what was funny about the joke until then. -- http://mail.python.org/ma

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-03 Thread Sunnan
Aahz wrote: Note very, VERY, *VERY* carefully that the quote says nothing about "boring code". The quote explicitly refers to "reams of trivial code" as boring -- and that's quite true. Consider this distinction: Thank you for this important clarification. if foo == 'red': print 'foo

Re: Lambda: the Ultimate Design Flaw

2005-04-02 Thread alex goldman
t;>>http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html >>> >>> >>>The Fate Of LAMBDA in PLT Scheme v300 >>> or >>> Lambda the Ultimate Design Flaw >>> >

Re: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Artie Gold
LAMBDA in PLT Scheme v300 or Lambda the Ultimate Design Flaw About 30 years ago, Scheme had FILTER and MAP courtesy of Lisp hackers who missed them from their past experience. To this collection, Scheme added a lexically-scoped, properly-functioning

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Aahz
In article <[EMAIL PROTECTED]>, Sunnan <[EMAIL PROTECTED]> wrote: >>> [Aahz] "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader to death.

Re: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Ron_Adam
On Sat, 02 Apr 2005 00:40:15 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: > >The danger in GOTO is that it allows the undisciplined programmer to >develop a badly-structured solution to a programming problem. A >disciplined programmer will write well-structured code with whatever >tools come

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-02 Thread Sunnan
Tim Peters wrote: [Aahz] "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader to death." --GvR [Sunnan] Can anyone please point me to the text that quote wa

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Steve Holden
alex goldman wrote: Daniel Silva wrote: At any rate, FOLD must fold. I personally think GOTO was unduly criticized by Dijkstra. With the benefit of hindsight, we can see that giving up GOTO in favor of other primitives failed to solve the decades-old software crisis. What software crisis? Knuth (

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Steve Holden
Aahz wrote: In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: [Sunnan] [...] for Pythons ideal of having one canonical, explicit way to program. No doubt it once was true, but I guess this ideal has been abandoned a few years ago. My honest feeling is th

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread François Pinard
[Aahz] > =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: > >No doubt it once was true, but I guess this ideal has been > >abandoned a few years ago. My honest feeling is that it would be a > >mis-representation of Python, assertng today that this is still one > >of the Python's ide

Re: boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Tim Peters
[Aahz] >> "The joy of coding Python should be in seeing short, concise, readable >> classes that express a lot of action in a small amount of clear code -- >> not in reams of trivial code that bores the reader to death." --GvR [Sunnan] > Can anyone please point me to the text that quote was taken

boring the reader to death (wasRe: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Sunnan
Aahz wrote: "The joy of coding Python should be in seeing short, concise, readable classes that express a lot of action in a small amount of clear code -- not in reams of trivial code that bores the reader to death." --GvR Can anyone please point me to the text that quote was taken from? I tried

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Bengt Richter
On 1 Apr 2005 20:00:13 -0500, [EMAIL PROTECTED] (Aahz) wrote: >In article <[EMAIL PROTECTED]>, >=?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >>[Sunnan] >>> >>> [...] for Pythons ideal of having one canonical, explicit way to >>> program. >> >>No doubt it once was true, but I gues

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Tom Breton
Daniel Silva <[EMAIL PROTECTED]> writes: [...] > So now FOLD. This is actually the one we've always hated most, > because, apart from a few examples involving + or *, almost every time > we see a FOLD call with a non-trivial function argument, we have to > grab pen and paper and imagine the *res

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL PROTECTED]> wrote: >[Sunnan] >> >> [...] for Pythons ideal of having one canonical, explicit way to >> program. > >No doubt it once was true, but I guess this ideal has been abandoned a >few years ago. > >My honest feeling

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Ulrich Hobelmann
alex goldman wrote: Daniel Silva wrote: At any rate, FOLD must fold. I personally think GOTO was unduly criticized by Dijkstra. With the benefit of hindsight, we can see that giving up GOTO in favor of other primitives failed to solve the decades-old software crisis. The fault of goto in imperati

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Sunnan
Jeremy Bowers wrote: Yes and no. In the Python community, we're taking all of that pretty seriously. The scheme community may not seriously be thinking of getting rid of those things, but it's hardly impossible that some people think it might be better off without it. Lambda is a primitive in Schem

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Joe Marshall
Jeremy Bowers <[EMAIL PROTECTED]> writes: > On Thu, 31 Mar 2005 23:30:42 -0800, Erik Max Francis wrote: > >> Daniel Silva wrote: >> >>> Shriram Krishnamurthi has just announced the following elsewhere; it might >>> be of interest to c.l.s, c.l.f, and c.l.p: >>> http://list.cs.brown.edu/pipermail/

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread François Pinard
[Sunnan] > [...] for Pythons ideal of having one canonical, explicit way to > program. No doubt it once was true, but I guess this ideal has been abandoned a few years ago. My honest feeling is that it would be a mis-representation of Python, assertng today that this is still one of the Python's

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Jeremy Bowers
On Thu, 31 Mar 2005 23:30:42 -0800, Erik Max Francis wrote: > Daniel Silva wrote: > >> Shriram Krishnamurthi has just announced the following elsewhere; it might >> be of interest to c.l.s, c.l.f, and c.l.p: >> http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html > > April Fool's

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Hans Oesterholt-Dijkema
The Fate Of LAMBDA in PLT Scheme v300 or Lambda the Ultimate Design Flaw Why drop LAMBDA? Why not? Isn't all code eventually anonymous and relocatable? -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Torsten Bronger
he Fate Of LAMBDA in PLT Scheme v300 > or > Lambda the Ultimate Design Flaw > > About 30 years ago, Scheme had FILTER and MAP courtesy of Lisp > hackers who missed them from their past experience. To this > collection, Scheme adde

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Sunnan
Daniel Silva wrote: We think dropping FILTER and MAP is pretty uncontroversial; (filter P S) is almost always written clearer as a DO loop (plus the LAMBDA is slower than the loop). Even more so for (map F S). In all cases, writing the equivalent imperative program is clearly beneficial. How abou

Re: Lambda: the Ultimate Design Flaw

2005-03-31 Thread alex goldman
Daniel Silva wrote: > At any rate, FOLD must fold. I personally think GOTO was unduly criticized by Dijkstra. With the benefit of hindsight, we can see that giving up GOTO in favor of other primitives failed to solve the decades-old software crisis. -- http://mail.python.org/mailman/listinfo/pyt

Re: Lambda: the Ultimate Design Flaw

2005-03-31 Thread Erik Max Francis
Daniel Silva wrote: Shriram Krishnamurthi has just announced the following elsewhere; it might be of interest to c.l.s, c.l.f, and c.l.p: http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html April Fool's Day again, eh? -- Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.c

Lambda: the Ultimate Design Flaw

2005-03-31 Thread Daniel Silva
Lambda the Ultimate Design Flaw About 30 years ago, Scheme had FILTER and MAP courtesy of Lisp hackers who missed them from their past experience. To this collection, Scheme added a lexically-scoped, properly-functioning LAMBDA. But, despite of the PR value of anything with Guy Steele's