Home

Cristian a écrit :
> On Sep 21, 4:47 pm, "Sean Tierney" <seanttier...@gmail.com> wrote:
>
>>Just tell him that "functions are like all other variables and can
>>therefore be passed by other functions or returned by other functions.
>>"
>>
>
>
>
>
> I could """Just tell him that "functions are like all other variables
> and can
> therefore be passed by other functions or returned by other functions.
> " """ but wouldn't it be great if Python did this for me? It seems to
> me that the ability for Python to explicitly state that functions-are-
> like-other-variables is there so why not expose it?

Ok, then what about classes ? They also are objects-like-any-other,
after all. So should we have this syntax too ?

MyClass = class(ParentClass):
__init__ = function (self, name):
self.name = name

?-)

previous
next

Re: File Read Cache - How to purge?
Re: enum
Eating whitespace but not eol
Re: What Can I do with "ostream"
Re: Whats the C++ equivalent of reading from stdin or a file
Mam Marzenie
Podaruj Zycie
Fundacja Iskierka
Fundacja Hobbit
Pajacyk