Re: merits of Lisp vs Python
Paul Rubin <http://phr.cx@NOSPAM.i nvalidwrites:
But this _is_ the way it's actually used. I think this is a key point
that many people here don't understand. _If_ the construct you
mention, really had any underlying use/goodness, for someone who
wanted it, they would simply add it with the nice syntax and all.
Also note that most of this would not involve macros - that would only
be a final step to add the "nice" syntax.
This isn't any sort of "contortion ", it's simply how things are
actually done. And indeed, in this case, the macrology would be
pretty straight forward and simple as opposed to "contorted" (which
I'm sure there are cases of).
I'm not sure your construct has anything necessarily to do with "OOP"
(which is a pretty nebulus concept). But even if it did, what you can
really say is that CLOS is the preferred/standard way to do it in CL.
If you have other requirements that don't quite fit, you don't try
pounding them into the round hole. There have been a few people here
in the last few months who have wanted to do just that. Of course you
can get quite a distance in this respect via the MOP and may not need
or want to do more.
/Jon
--
'j' - a n t h o n y at romeo/charley/november com
Paul Rubin <http://phr.cx@NOSPAM.i nvalidwrites:
jayessay <nospam@foo.com writes:
Unless I'm missing something this looks absolutely dead easy to
implement in Lisp and with a very little macrology you would have the
syntax as well. I'm not sure how this makes one or the other "more
dynamic".
>
I'm talking about the way Lisp is actually used, not what contortions
one can do with macros.
If you say foo.frob() in Python, that's supposed to look up 'frob' in
a dictionary hanging off of foo. You can modify the contents of this
dictionary any time you want.
a dictionary hanging off of foo. You can modify the contents of this
dictionary any time you want.
implement in Lisp and with a very little macrology you would have the
syntax as well. I'm not sure how this makes one or the other "more
dynamic".
I'm talking about the way Lisp is actually used, not what contortions
one can do with macros.
that many people here don't understand. _If_ the construct you
mention, really had any underlying use/goodness, for someone who
wanted it, they would simply add it with the nice syntax and all.
Also note that most of this would not involve macros - that would only
be a final step to add the "nice" syntax.
This isn't any sort of "contortion ", it's simply how things are
actually done. And indeed, in this case, the macrology would be
pretty straight forward and simple as opposed to "contorted" (which
I'm sure there are cases of).
The way one does OOP in Lisp is with CLOS.
(which is a pretty nebulus concept). But even if it did, what you can
really say is that CLOS is the preferred/standard way to do it in CL.
If you have other requirements that don't quite fit, you don't try
pounding them into the round hole. There have been a few people here
in the last few months who have wanted to do just that. Of course you
can get quite a distance in this respect via the MOP and may not need
or want to do more.
/Jon
--
'j' - a n t h o n y at romeo/charley/november com
Comment