prog: (Default)
[personal profile] prog
These questions aren't language-specific; consider the questions as pseudocode. Pretend that the underscores are actually studlyCaps if you'd like.

Also, don't worry about return values of the mutators, which is a separate question.



[Poll #875101]

Date: 2006-11-25 09:50 pm (UTC)
From: [identity profile] dougo.livejournal.com
I've grown accustomed to Common Lisp's (foo object) and (setf (foo object) new-foo-value), which I've also started to use in Scheme dialects that have extensible set! (like Swindle). But since Scheme is a Lisp1 instead of a Lisp2, it does sometimes get in the way when you want to have a variable with the same name as an accessor function. I haven't decided yet if this matters enough.

Date: 2006-11-25 09:52 pm (UTC)
From: [identity profile] dougo.livejournal.com
I should mention that (setf (foo object) new-foo-value) is pretty much equivalent to the object.foo = new_foo_value that [livejournal.com profile] brentdax likes.

August 2022

S M T W T F S
 123456
78910111213
14151617181920
21222324252627
28 293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 27th, 2025 02:10 am
Powered by Dreamwidth Studios