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] brentdax.livejournal.com 2006-11-25 07:55 pm (UTC)(link)
My votes (for object.foo([new value])) are only for Perl. Really, I prefer whatever the language usually uses.

Although what I really prefer is object.foo and object.foo = new value, but we'll have to wait for Perl 6 to really do that properly.

[identity profile] novalis.livejournal.com 2006-11-27 02:19 am (UTC)(link)
I'll second the really.

[identity profile] prog.livejournal.com 2006-11-27 02:25 am (UTC)(link)
lvalues are weird.

[identity profile] novalis.livejournal.com 2006-11-27 03:19 am (UTC)(link)
I want the ability to have the interface of an object be a set of fields, and then the ability to change my mind on the implementation.

[identity profile] misuba.livejournal.com 2006-11-27 06:08 pm (UTC)(link)
Thirded. Of course, I get to do it in Ruby right now :-P