Re: Porting Ruby snippet to Lisp



Zach Beane wrote:
Brian Adkins <lojicdotcomNOSPAM@xxxxxxxxx> writes:

I would hope that code within a method of a class would be able to
refer to attributes of the class more easily.

Methods do not belong to classes, they belong to generic functions.

Would it help if I replaced "of a class" with "specialized for a class" in the above?

To frame this in terms of languages I know, I guess Lisp's object
model is closer to Python with respect to "explicitness"
vs. Ruby/Java with an implicit self/this.

No.

No? Can you provide an example of an implicit self/this then?

I think you'll make progress more quickly if you stop framing things
in terms of languages you know, and learn Lisp on your own terms.

Zach
.



Relevant Pages

  • Re: More MindTrap - 5
    ... Here's the official MindTrap A: ... "Cousin" does not belong since all the others refer to a specific sex. ...
    (alt.fan.letterman)
  • Re: Porting Ruby snippet to Lisp
    ... refer to attributes of the class more easily. ... Methods do not belong to classes, they belong to generic functions. ... Can you provide an example of an implicit self/this then? ...
    (comp.lang.lisp)
  • Re: Porting Ruby snippet to Lisp
    ... refer to attributes of the class more easily. ... Methods do not belong to classes, they belong to generic functions. ... model is closer to Python with respect to "explicitness" ...
    (comp.lang.lisp)
  • Re: More MindTrap - 5
    ... Here's the official MindTrap A: ... "Cousin" does not belong since all the others refer to a specific sex. ...
    (alt.fan.letterman)
  • Re: More MindTrap - 5
    ... Here's the official MindTrap A: ... "Cousin" does not belong since all the others refer to a specific sex. ...
    (alt.fan.letterman)