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

caches in the macro API should be removed #6362

Closed
scabug opened this issue Sep 11, 2012 · 2 comments
Closed

caches in the macro API should be removed #6362

scabug opened this issue Sep 11, 2012 · 2 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Sep 11, 2012

As recent experience shows, it's hardly possible to implement a global cache that persists between compilation runs: http://groups.google.com/group/scala-ide-user/browse_thread/thread/b1cab5588ff21f7f. Therefore I think we need to remove Context.globalCache.

Speaking of cache, it looks like Context.cache can be emulated with attachments. It'd be also interesting to see what Racket guys do in their latest paper "Macros that work together".

But for it I think we need to remove both caches. If macro writers really need that functionality, they'd better roll their own mechanisms instead of using our half-baked API.

@scabug
Copy link
Author

scabug commented Sep 11, 2012

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

@scabug
Copy link
Author

scabug commented Sep 15, 2012

@xeno-by said:
scala/scala@e6176af

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