Created
April 3, 2024 08:01
-
-
Save irfanbaysal/04910d69915f9212da101dd13111aeab to your computer and use it in GitHub Desktop.
Record
This file contains 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
Feature | Record (Limited Support) | |
---|---|---|
Type | Reference Type | |
Mutability | Immutable (potentially in future) | |
Complexity | More concise syntax for data-centric classes (limited use in Unity) | |
Memory Usage | Potentially less efficient than structs for small data (Unity context) | |
Unity Focus | Not fully supported yet | |
Performance | Potentially slower than structs, but with benefits (future) | |
Data Access | Reference indirection (slower) | |
Built-in Functionalities | Equality comparison, Hashing (potential benefit) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment