-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
RFC: Improvement to hygienic macros #6910
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
Open
david-moon
wants to merge
18
commits into
JuliaLang:master
Choose a base branch
from
david-moon:moon/hygienic-macros
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 3 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
8e07097
Make macro hygiene easier to use.
baeeb03
Update documentation for new macro hygiene mechanism
bbf5595
Merge branch 'moon/hygienic-macros' of https://github.com/david-moon/…
9713b2b
Add tests for some macros
5a7d3b8
Add some tracing code (commented out) and fix some comments
5b2f162
Fix this to work with the new auto-hygienic macros.
467549c
Remove some tabs I accidentally added in the last commit
7ae26dd
Add documen tation of splatting expression interpolation, make quote …
4dfd75c
Improve documentation of esc, per code review
755fca0
Fix error message interpolation in gen_call_with_extracted_types()
dddb999
Tweak hygiene doc
9e7e186
Avoid symbol("@cmd") which is not hygienic
ac7240b
Fix quoting problem in my previous commit
97c11fe
Use quote instead of Expr in help macro so it gets automatic hygiene …
6cedc54
Merge branch 'master' of git://github.com/JuliaLang/julia into moon/h…
5bba56d
difference is to diff as assoc is to assq
850746a
Change :x to quote x end in lots of places so it is hygienic, also fi…
c3af49c
Update the entry for let in vars-introduced-by-patterns
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use the
@deprecate
macro to print a deprecation warning. The deprecation declarations are consolidated into thebase/deprecated.jl
file to make them easy to find.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On May 21, 2014, at 3:36 PM, pao wrote:
Good suggestions. I will make these updates after a day or two to
let others weigh in.
On May 21, 2014, at 3:30 PM, Kevin Squire wrote:
I don't see anything to be gained by obfuscation! I used
approximately the same form of commit log that we used to use at
Progress Software.
--Dave Moon