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
Labels
Milestone

Comments

@scabug
Copy link

@scabug 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

This comment has been minimized.

Copy link
Author

@scabug scabug commented Sep 11, 2012

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Sep 15, 2012

@scabug scabug closed this Sep 15, 2012
@scabug scabug added this to the 2.10.0-M7 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.