Every time I see `class … < Struct.new(…)` I start twitching. All these blog posts are damaging my health. :)
-
-
Replying to @davetron5000
@davetron5000 IIRC you can do `Foo = Struct.new(…) do#methods end` to get the same effect. I think@JEG2 prefers this style.1 reply 0 retweets 0 likes -
Replying to @therealadam
@therealadam@jeg2 If so, the former form puts the attributes in rdoc and thus I consider it superior to the later form…4 replies 0 retweets 0 likes -
Replying to @davetron5000
@davetron5000@therealadam@jeg2 the subclassing style creates an unintended intermediate class in the hierarchy.1 reply 0 retweets 0 likes -
Replying to @akahn
@akahn@therealadam@jeg2 seems worthwhile; not like we're gonna run out of PermGen in ruby :)1 reply 0 retweets 0 likes -
Replying to @davetron5000
@davetron5000@akahn@JEG2 IIRC the application we work on overflowed PermGen the first time it was booted in JRuby ;)1 reply 0 retweets 0 likes
@therealadam @davetron5000 @akahn @JEG2 yep, although that was due to def-within-def. Shutting the JIT off "fixed" it :(
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.