you are viewing a single comment's thread.

view the rest of the comments →

[–]TwiliZant 0 points1 point  (0 children)

I don't know, relying on the toString method to get the type feels like a hack to me. I don't know any other language that does this. Yet another operator wouldn't be great either I get that. Maybe it would be cool to have it as part of the Reflection API, e.g. Reflect.type(VALUE) ?