Skip to content

[Extension type] Core library updates #49740

Closed
Listed in
Closed
@itsjustkevin

Description

@itsjustkevin
No description provided.

Activity

added
area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
on Aug 19, 2022
shilangyu

shilangyu commented on Aug 20, 2022

@shilangyu
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

mraleph commented on Aug 21, 2022

@mraleph
Member

@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

eernstg commented on Mar 6, 2023

@eernstg
Member

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

changed the title [-][Views] Core library updates[/-] [+][Inline Class] Core library updates[/+] on Mar 6, 2023
changed the title [-][Inline Class] Core library updates[/-] [+][Extension type] Core library updates[/+] on Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @mraleph@lrhn@a-siva@eernstg@itsjustkevin

      Issue actions

        [Extension type] Core library updates · Issue #49740 · dart-lang/sdk