New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the typeOf[T: TypeTag](x: T) = typeOf[T] function #6484
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6484?orig=1 |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
@xeno-by said: |
It'd be quite useful to have a possibility to write "typeOf(foo)" along with "typeOf[Foo]". A superficial experimentation session doesn't show any problems with typeOf[T] and typeOf[T](x: T) coexisting.
Inspired by http://blog-mno2.csie.org/blog/2011/12/24/what-are-data-dot-typeable-and-data-dot-dynamic-in-haskell/.
The text was updated successfully, but these errors were encountered: