Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMerge into a single crate. Use macros even on unstable. #125
Conversation
|
The move to macros is great! As a coding style issue, are we encouraging the style of ns!(xml) or ns!("xml")? Reviewed 17 of 17 files at r1. build.rs, line 70 [r1] (raw file): src/atom/mod.rs, line 308 [r1] (raw file): src/lib.rs, line 56 [r1] (raw file): Comments from the review on Reviewable.io |
|
Review status: 15 of 16 files reviewed at latest revision, 3 unresolved discussions. build.rs, line 70 [r1] (raw file): src/atom/mod.rs, line 308 [r1] (raw file): Are the tests at https://github.com/servo/string-cache/blob/0854229fbe/src/atom/mod.rs#L465-L466 enough? src/lib.rs, line 56 [r1] (raw file): Comments from the review on Reviewable.io |
|
Reviewed 1 of 1 files at r2. src/atom/mod.rs, line 308 [r1] (raw file): Since you're being explicit about packing to u64 I don't think you need a unit test. src/lib.rs, line 56 [r1] (raw file): Comments from the review on Reviewable.io |
|
|
Breaking changes:
* `ns!("")` should be written `ns!()`
* Other `ns!(…)` macros should be lowercase, unquoted.
|
Here is how it works in this last commit and why:
This removes alternative/synonymous syntax based on "there should be one way of doing it". (This may cause more churn for updating html5ever and Servo, though.) |
|
It's an identifier, not a string, so I agree with not quoting the argument to |
|
Reviewed 5 of 5 files at r3. Comments from the review on Reviewable.io |
|
@bors-servo r+ |
|
|
|
@bors-servo r=asajeffrey |
|
|
Merge into a single crate. Use macros even on unstable.
Breaking changes:
* `ns!("")` should be written `ns!()`
* Other `ns!(…)` macros should be lowercase, unquoted.
Fixes #124
Closes #123
r? @asajeffrey
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/string-cache/125)
<!-- Reviewable:end -->
|
|
SimonSapin commentedNov 19, 2015
Breaking changes:
ns!("")should be writtenns!()ns!(…)macros should be lowercase, unquoted.Fixes #124
Closes #123
r? @asajeffrey