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

[Extension type] Core library updates #49740

Closed
Tracked by #52684
itsjustkevin opened this issue Aug 19, 2022 · 3 comments
Closed
Tracked by #52684

[Extension type] Core library updates #49740

itsjustkevin opened this issue Aug 19, 2022 · 3 comments
Assignees
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

Comments

@itsjustkevin
Copy link
Contributor

No description provided.

@a-siva a-siva added the area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. label Aug 19, 2022
@shilangyu
Copy link
Contributor

Where could one read more about this Views feature? Unfortunately I could not find it in the language repo. Is that a library-only change?

@mraleph
Copy link
Member

mraleph commented Aug 21, 2022

@shilangyu you can check these two proposals to get the idea:

https://github.com/dart-lang/language/blob/master/working/1426-extension-types/feature-specification-views.md

https://github.com/dart-lang/language/blob/master/working/extension_structs/overview.md

tldr is that views provide a way to define a non-reified type, which only exists as a separate entity during compilation and is erased in runtime. It's a zero-overhead to provide a wrapper (with its own helper methods) around an existing representation type.

@eernstg
Copy link
Member

eernstg commented Mar 6, 2023

Please note that this feature has been renamed: It is now the 'inline class' feature.

@itsjustkevin itsjustkevin changed the title [Views] Core library updates [Inline Class] Core library updates Mar 6, 2023
@itsjustkevin itsjustkevin changed the title [Inline Class] Core library updates [Extension type] Core library updates Jul 25, 2023
@lrhn lrhn closed this as completed May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
Projects
None yet
Development

No branches or pull requests

6 participants