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 07:55 pm (UTC)
From: [identity profile] brentdax.livejournal.com
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.

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

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

Date: 2006-11-27 03:19 am (UTC)
From: [identity profile] novalis.livejournal.com
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.

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

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:03 am
Powered by Dreamwidth Studios