prog: (Default)
prog ([personal profile] prog) wrote2006-11-25 11:58 am
Entry tags:

Hey you coders

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]

[identity profile] dougo.livejournal.com 2006-11-25 09:50 pm (UTC)(link)
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.

[identity profile] dougo.livejournal.com 2006-11-25 09:52 pm (UTC)(link)
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.