refactor(ast/ast_builder)!: shorter allocator utility method names.#4122
Conversation
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
CodSpeed Performance ReportMerging #4122 will not alter performanceComparing Summary
|
a3735c5 to
f211477
Compare
1a82128 to
451cf2e
Compare
|
I agree with the logic of this change. I'd suggest |
|
I still prefer |
At first, I thought it was accepting iterators before so I sent a false comment. I removed it to write an accurate answer instead. I chose this name because it doesn't accept |
I agree with your reasoning, Just pushed a new commit addressing this. |
f211477 to
1afc128
Compare
05e145b to
e69c323
Compare
1afc128 to
9aa4b60
Compare
e69c323 to
2943085
Compare
Merge activity
|
9aa4b60 to
0b43310
Compare
…4122) This PR serves two purposes, First off it would lower the amount of characters we have to type in for a simple operation such as wrapping an expression in a vector. Secondly, it would follow the generated names more closely since nowhere else in the builder we do have `new_xxx`, We always say `xxx` since a builder always constructs something. ``` new_vec -> vec new_vec_single -> vec1* new_vec_from_iter -> vec_from_iter new_vec_with_capacity -> vec_with_capacity new_str -> str new_atom -> atom ``` `*` This one is the main motivation behind this PR, It saves 10 characters!
2943085 to
69cea86
Compare
…4122) This PR serves two purposes, First off it would lower the amount of characters we have to type in for a simple operation such as wrapping an expression in a vector. Secondly, it would follow the generated names more closely since nowhere else in the builder we do have `new_xxx`, We always say `xxx` since a builder always constructs something. ``` new_vec -> vec new_vec_single -> vec1* new_vec_from_iter -> vec_from_iter new_vec_with_capacity -> vec_with_capacity new_str -> str new_atom -> atom ``` `*` This one is the main motivation behind this PR, It saves 10 characters!
69cea86 to
c5a6e9e
Compare
…4122) This PR serves two purposes, First off it would lower the amount of characters we have to type in for a simple operation such as wrapping an expression in a vector. Secondly, it would follow the generated names more closely since nowhere else in the builder we do have `new_xxx`, We always say `xxx` since a builder always constructs something. ``` new_vec -> vec new_vec_single -> vec1* new_vec_from_iter -> vec_from_iter new_vec_with_capacity -> vec_with_capacity new_str -> str new_atom -> atom ``` `*` This one is the main motivation behind this PR, It saves 10 characters!
c5a6e9e to
b936162
Compare
## [0.19.0] - 2024-07-09 - b936162 ast/ast_builder: [**BREAKING**] Shorter allocator utility method names. (#4122) (rzvxa) ### Features - 485c871 ast: Allow conversion from `Expression` into `Statement` with `FromIn` trait. (#4124) (rzvxa) ### Refactor Co-authored-by: Boshen <Boshen@users.noreply.github.com>

This PR serves two purposes, First off it would lower the amount of characters we have to type in for a simple operation such as wrapping an expression in a vector. Secondly, it would follow the generated names more closely since nowhere else in the builder we do have
new_xxx, We always sayxxxsince a builder always constructs something.*This one is the main motivation behind this PR, It saves 10 characters!