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

untyped macros still typecheck type arguments #6972

Closed
scabug opened this issue Jan 14, 2013 · 5 comments
Closed

untyped macros still typecheck type arguments #6972

scabug opened this issue Jan 14, 2013 · 5 comments
Assignees

Comments

@scabug
Copy link

scabug commented Jan 14, 2013

E.g. one can't use untyped macros to implement vararg type parameters.

@scabug
Copy link
Author

scabug commented Jan 14, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6972?orig=1
Reporter: @xeno-by
Affected Versions: macro-paradise

@scabug
Copy link
Author

scabug commented Feb 13, 2013

@milessabin said:
I would like to be able to have type arguments with unspecified kind, ie. given Foo, Bar[], Baz[, _] etc. I would like to able to write a type macro which could be applied to all of them, ie. TypeMacro[Foo], TypeMacro[Bar], TypeMacro[Baz] given the above definitions. For applications see kind polymorphism in GHC.

Something along these lines could also provide smoother mechanism for type constructor partial application.

@scabug
Copy link
Author

scabug commented Mar 1, 2013

@xeno-by said:
Please let me know whether this is a blocker for you. Otherwise I'd tend to other things, which have materialized in great numbers during the last couple of weeks.

@scabug
Copy link
Author

scabug commented Mar 1, 2013

@milessabin said:
It's not a blocker, but I can see it being generally useful. The kind polymorphism angle might also give you some purchase on type tags for type constructors of arbitrary arity ...

@scabug
Copy link
Author

scabug commented Aug 5, 2013

@xeno-by said (edited on Aug 5, 2013 2:09:50 PM UTC):
Untyped macros are discontinued: http://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html

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

2 participants