You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I was reviewing the introduction of @type and std.Type, I was wondering what would be the best way to support the use case of exploring the type of an object.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
As I was reviewing the introduction of
@type
andstd.Type
, I was wondering what would be the best way to support the use case of exploring the type of an object.Here's a quick sketch of my thoughts:
Basically the idea is that
@typeof(x)
will return anstd.Type
that's the same as the one returned by@type(<the type of x>)
:-).Beta Was this translation helpful? Give feedback.
All reactions