Navigation Menu

Skip to content
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

Open
scabug opened this issue Oct 7, 2012 · 8 comments
Open

Add the typeOf[T: TypeTag](x: T) = typeOf[T] function #6484

scabug opened this issue Oct 7, 2012 · 8 comments
Milestone

Comments

@scabug
Copy link

scabug commented Oct 7, 2012

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/.

@scabug
Copy link
Author

scabug commented Oct 7, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6484?orig=1
Reporter: @xeno-by
See #8063

@scabug
Copy link
Author

scabug commented Nov 5, 2012

@xeno-by said:
On a semi-related note, symbolOf wouldn't hurt either

@scabug
Copy link
Author

scabug commented Dec 9, 2012

@xeno-by said:
scala/scala#1741

@scabug
Copy link
Author

scabug commented Dec 31, 2012

@xeno-by said:
The linked pull request exposes a problem with having the desired method named typeOf. We need to think of a better strategy or of a different name. But for now I'm abandoning that pull request.

@scabug
Copy link
Author

scabug commented Jan 28, 2014

@xeno-by said:
Moved the symbolOf aspect to #8194

@scabug
Copy link
Author

scabug commented Feb 1, 2014

@xeno-by said:
scala/scala#3452

@scabug
Copy link
Author

scabug commented Feb 17, 2014

@xeno-by said:
Unfortunately, progress on this one is blocked by #8303: xeno-by/scala@619dd6b. Maybe third pull request will be the charm.

@scabug
Copy link
Author

scabug commented Feb 17, 2014

@xeno-by said:
Marking this one as critical, so that I don't forget to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants