@chrishunt neat!
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik Ostructs are also good for simple stubs. -
@elight quite true!
End of conversation
New conversation -
-
-
@steveklabnik structs use less memory, too, if that's important to whatever you're doingThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik also faster, at least in 1.8Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik looks like the memory difference is a lot smaller in 1.9 and the speed gap has been closed, too -
@fowlduck neat, thanks!
End of conversation
New conversation -
-
-
@steveklabnik Struct.new also accepts a block, which you can use to define methods on it. (and that's still undocumented :-( )Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@steveklabnik the block is class_eval'ed of course. I prefer using that over class Foo < Struct.new. -
@apeiros awesome :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.