From: Yukihiro Matsumoto Date: 2004-11-12T10:43:16+09:00 Subject: Re: ruby idiom for attribute definition? Hi, In message "Re: ruby idiom for attribute definition?" on Fri, 12 Nov 2004 04:06:39 +0900, Dave Thomas writes: |That's why I said you have to use the accessor methods. Structs cheat. I don't consider it cheating. Accessing instance variables is sort of cheating (that's part of the reason for ugly "@"). |Matz: we discussed this before, but it would be really nice if Struct |set up the IVs too: that way this idiom would be more generally useful. Hmm, instance variables are internal information. If you don't know the internal, you should use accessors (self.a this case), even in the methods. I'm not excited for Structs to have their members in instance variables. matz.