Skip to content

Instantly share code, notes, and snippets.

@irfanbaysal
Created April 3, 2024 08:01
Show Gist options
  • Save irfanbaysal/04910d69915f9212da101dd13111aeab to your computer and use it in GitHub Desktop.
Save irfanbaysal/04910d69915f9212da101dd13111aeab to your computer and use it in GitHub Desktop.
Record
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