Re: Porting Ruby snippet to Lisp
- From: Brian Adkins <lojicdotcomNOSPAM@xxxxxxxxx>
- Date: Sat, 17 Mar 2007 13:29:06 -0400
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
- Follow-Ups:
- Re: Porting Ruby snippet to Lisp
- From: Zach Beane
- Re: Porting Ruby snippet to Lisp
- References:
- Porting Ruby snippet to Lisp
- From: Brian Adkins
- Re: Porting Ruby snippet to Lisp
- From: Dan Bensen
- Re: Porting Ruby snippet to Lisp
- From: Brian Adkins
- Re: Porting Ruby snippet to Lisp
- From: Zach Beane
- Porting Ruby snippet to Lisp
- Prev by Date: Re: Porting Ruby snippet to Lisp
- Next by Date: Re: Porting Ruby snippet to Lisp
- Previous by thread: Re: Porting Ruby snippet to Lisp
- Next by thread: Re: Porting Ruby snippet to Lisp
- Index(es):
Relevant Pages
|