Re: loose methods: Smalltalk asPython

2007-01-26 Thread Steve Holden
Carl Banks wrote: > Jan Theodore Galkowski wrote: >>> We've not had >>> an excellent dynamic OO language since Smalltalk, IMO. > > I would say that "excellence" in object oriented programming is not a > strong design goal of Python. Python tries to support OOP well, but > not to enhance OOP to th

re: loose methods: Smalltalk asPython

2006-12-27 Thread Jan Theodore Galkowski
>> > We've not had an excellent dynamic OO language since >> > Smalltalk, IMO. > >I would say that "excellence" in object oriented programming is not a >strong design goal of Python. Python tries to support OOP well, but >not to enhance OOP to the detriment of other, more important goals. okay.

re: loose methods: Smalltalk asPython

2006-12-27 Thread Jan Theodore Galkowski
[snipness] >I don't think the response was meant to say that it must be bad but >that it won't show up as feature in Python as long as the BDFL thinks >it's bad. [snipness] oh, i was not proposing any change to the language. it's fine as it is. i would be reluctant to change it. i want it chan

Re: loose methods : Smalltalk asPython

2006-12-27 Thread Steven D'Aprano
On Wed, 27 Dec 2006 09:28:17 -0500, Jean-Paul Calderone wrote: > On Wed, 27 Dec 2006 19:03:12 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >> >>You can't modify the built-in classes. I'm not sure that it is a good idea >>to allow built-ins to be modified. When I see an int, I like the fact th

Re: loose methods: Smalltalk asPython

2006-12-27 Thread Carl Banks
Jan Theodore Galkowski wrote: > > We've not had > > an excellent dynamic OO language since Smalltalk, IMO. I would say that "excellence" in object oriented programming is not a strong design goal of Python. Python tries to support OOP well, but not to enhance OOP to the detriment of other, more i

re: loose methods: Smalltalk asPython

2006-12-27 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Jan Theodore Galkowski wrote: >>Guido was opposed to modifying builtin types before Java existed. It's >>similar to his opposition to dynamic syntax. > > The other is placing those builtins at the top of their own object > hierarchy. Is "int", properly speaking, a descen

re: loose methods: Smalltalk asPython

2006-12-27 Thread Jan Theodore Galkowski
>Guido was opposed to modifying builtin types before Java existed. It's >similar to his opposition to dynamic syntax. Opposition or not, the language definition is there. Surely Smalltalk's OO style can be respected. Smalltalkers have been doing OO in a dynamic context longer than many. There

Re: loose methods: Smalltalk asPython

2006-12-27 Thread Aahz
In article <[EMAIL PROTECTED]>, Jan Theodore Galkowski <[EMAIL PROTECTED]> wrote: > >I think Python is very fine although, arguably, because many are >approaching it from a Java strong-typing static mindset, I bet the space >of design possibilities hasn't been explored thoroughly. We've not had >a

re: loose methods: Smalltalk asPython

2006-12-27 Thread Jan Theodore Galkowski
>Jan Theodore Galkowski <[EMAIL PROTECTED]> wrote: >> Comments? Suggestions? > Luc, don't misunderstand: There's nothing at all wrong with Python nor am I suggesting there is. I'm just exploring how far I can go using its dynamic nature. There's no hope of using loos

Re: loose methods : Smalltalk asPython

2006-12-27 Thread Jean-Paul Calderone
On Wed, 27 Dec 2006 19:03:12 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >You can't modify the built-in classes. I'm not sure that it is a good idea >to allow built-ins to be modified. When I see an int, I like the fact that >I know what the int can do, and I don't have to worry about wheth

Re: loose methods : Smalltalk asPython

2006-12-27 Thread bearophileHUGS
Steven D'Aprano: > You can't modify the built-in classes. I'm not sure that it is a good idea > to allow built-ins to be modified. When I see an int, I like the fact that > I know what the int can do, and I don't have to worry about whether it has > been modified by some piece of code elsewhere. I

Re: loose methods : Smalltalk asPython

2006-12-27 Thread Luc Heinrich
Jan Theodore Galkowski <[EMAIL PROTECTED]> wrote: > Comments? Suggestions? -- Luc Heinrich -- http://mail.python.org/mailman/listinfo/python-list

Re: loose methods : Smalltalk asPython

2006-12-27 Thread Steven D'Aprano
On Tue, 26 Dec 2006 22:49:30 -0500, Jan Theodore Galkowski wrote: > Hi. > > One of the things I'd like to do with Python is find a way to > consistently implement Smalltalk's "loose methods". This is a > capability whereby additional methods can be added dynamically to > existing classes. You

loose methods : Smalltalk asPython

2006-12-26 Thread Jan Theodore Galkowski
Hi. One of the things I'd like to do with Python is find a way to consistently implement Smalltalk's "loose methods". This is a capability whereby additional methods can be added dynamically to existing classes. In some respects, it's possible with Python. While "object" cannot be touched, it's