Skip to content

Commit

Permalink
Use the same generic name in all collection impls
Browse files Browse the repository at this point in the history
We previously used names such as `T`, `K` and `V`, which is the common
Rust style. These generics aren't used in the generated interface
though, which might cause confusion, so let's use the same generic name
everywhere.

In short, the change is:
- `NSArray<T>` -> `NSArray<ObjectType>`
- `NSSet<T>` -> `NSSet<ObjectType>`
- `NSDictionary<K, V>` -> `NSDictionary<KeyType, ObjectType>`

I was unsure about the helper `Q` generic on `NSDictionary`, I went with
calling that `CopiedKey`.
  • Loading branch information
madsmtm committed Sep 23, 2024
1 parent 23fc0ed commit 895005b
Show file tree
Hide file tree
Showing 7 changed files with 240 additions and 205 deletions.
8 changes: 4 additions & 4 deletions crates/test-ui/ui/nsarray_not_message.stderr

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 895005b

Please sign in to comment.