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

Rename Array -> VariantArray, TypedArray -> Array #151

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

Bromeon
Copy link
Member

@Bromeon Bromeon commented Mar 7, 2023

Suggests that Array<T> is the default and preferred way of using arrays (with type-safe elements), while VariantArray is more a special case of untyped arrays.

We probably need to observe usage to see whether this makes sense. An alternative would be VArray instead of VariantArray, but that would require a frequent occurrence so that the shortened identifier pays off.

bors try

@Bromeon Bromeon added quality-of-life No new functionality, but improves ergonomics/internals c: core Core components labels Mar 7, 2023
bors bot added a commit that referenced this pull request Mar 7, 2023
@bors
Copy link
Contributor

bors bot commented Mar 7, 2023

try

Build succeeded:

@Bromeon
Copy link
Member Author

Bromeon commented Mar 7, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented Mar 7, 2023

Build succeeded:

@bors bors bot merged commit 1f628e1 into master Mar 7, 2023
@bors bors bot deleted the feature/array-rename branch March 7, 2023 21:29
@ttencate ttencate mentioned this pull request Mar 8, 2023
bors bot added a commit that referenced this pull request May 8, 2023
252: Implement `#[func]` for static functions r=Bromeon a=lilizoey

Takes over from #210 

Adds support for static methods in classes.

also replaces tabs with spaces in `signature.rs`.

thanks a lot to `@ttencate!` it was very straightforward to make this work based on what they'd already done.

from what i can tell, there are no static virtual methods. so we dont need to implement support for that. im not sure if there ever will be but it doesn't seem likely to me at least.

it might be worth it to move more of this logic into procedural macros eventually.

closes #175 

262: Correct documentation on Array r=Bromeon a=Mercerenies

Per #151, the struct `TypedArray` has been renamed. This MR updates stale documentation to reflect the new naming scheme.

266: Improve `cargo check` times for incremental changes to `godot-core` r=Bromeon a=lilizoey

On my machine, this change makes the time `cargo check` takes to run go from 48 seconds to 11 seconds when making an incremental change to `godot-core`. in this case tested by adding/removing a single method to/from `Basis`.

I've seen it be as low as 2 seconds sometimes but im not entirely sure why that happens.

Co-authored-by: Thomas ten Cate <[email protected]>
Co-authored-by: Lili Zoey <[email protected]>
Co-authored-by: Silvio Mayolo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: core Core components quality-of-life No new functionality, but improves ergonomics/internals
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant