Hypothesis: singleton classes on non-Classes are a bad idea (ie lang wart). /cc @bascule @brixen @johnbender
-
-
Replying to @evanphx
@evanphx what about runtime structs?@bascule@brixen@johnbender1 reply 0 retweets 0 likes -
Replying to @wycats
@wycats@evanphx@brixen@johnbender OpenStruct? trololol1 reply 0 retweets 0 likes -
Replying to @bascule
@bascule Struct and OpenStruct are both cases where you get runtime-defined methods, like object singletons@evanphx@brixen@johnbender2 replies 0 retweets 0 likes -
Replying to @wycats
@wycats@evanphx@brixen@johnbender doesn't OpenStruct just use method_missing to proxy a hash lookup?3 replies 0 retweets 0 likes -
Replying to @bascule
@bascule my point is more about the utility of runtime-defined methods on objects; def vs. m_m are similar@evanphx@brixen@johnbender1 reply 0 retweets 0 likes
@wycats @evanphx @brixen @johnbender I'd really just rather have an InDy-like MethodHandle toolkit for doing that stuff properly
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.