Should top
have any methods defined on it (eg __send__
)?
#1613
sampersand
started this conversation in
General
Replies: 2 comments
-
Let’s get it straight: Why differentiate |
Beta Was this translation helpful? Give feedback.
0 replies
-
That’d be using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Exactly as the title sounds: Should the
top
type have any methods defined on it? Currently, it does not.While you can technically
undef
/redefine some of the more critical methods (i.e.object_id
,__send__
, andinitialize
, but interestingly not__id__
) in Ruby, you get a stern warning:If we want to keep
top
a pristine "absolutely nothing guaranteed" type, then we may also want to somehow consider denoting that these methods are available on nearly all objects.I don't feel particularly strongly either way.
Beta Was this translation helpful? Give feedback.
All reactions