-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[Records] Core library updates #49727
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
Comments
We could now add (int quotient, int remainder) divmod(int divisor) => (this ~/ divisor, this.remainder(divisor)); Backends can optimize this to ensure we only do one low-level (Could also have The usual concern would be whether it should be |
Another possible related addition would be an extension method on |
Is there any work left here? |
There is significant work left. I've started on it, but is focusing on modifiers right now. Concrete plans:
|
I think this was completed in https://dart-review.googlesource.com/c/sdk/+/288903, @lrhn ? |
I don't think we ever got around to documenting |
Yeah, but we'll have to cherry pick it, so please file a request for that |
The change is cherry-pick requested. Only thing we need to decide if whether we want to do something about |
Uh oh!
There was an error while loading. Please reload this page.
Expected updates:
Add
Record
class as superclass of all record types.Add abstract
==
andhashCode
onRecord
with documentation stating how record equality and hashcode is computed.Consider:
static bool identical(Record, Record)
on classRecord
, doing deep structure equivalence checks.Add documentation to
identical
saying how it works for record types.Add documentation to
identityHashCode
saying how it works for record types (arbitrarily).Add documentation to
Expando
,WeakReference
andFinalizer
saying that they do not work with record objects.Add more as needed.
The text was updated successfully, but these errors were encountered: