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

Add EMPTY field in Symbol class, Symbol.EMPTY #16273

Open
DartBot opened this issue Jan 24, 2014 · 1 comment
Open

Add EMPTY field in Symbol class, Symbol.EMPTY #16273

DartBot opened this issue Jan 24, 2014 · 1 comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. core-2 library-core type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jan 24, 2014

This issue was originally filed by andrew.m...@gmail.com


Add EMPTY field in Symbol class, Symbol.EMPTY.

+++
class Symbol {
  static final Symbol EMPTY = const Symbol("");
}
+++

OR even so (if possible)

+++
class Symbol {
  static const Symbol EMPTY = const Symbol("");
}
+++

Usage:

+++
type.newInstance(Symbol.EMPTY, []);
+++

I think that it will not add a "large overhead" compared to this.

+++
type.newInstance(const Symbol(""), []);
+++

@lrhn
Copy link
Member

lrhn commented Jan 24, 2014

Removed Type-Defect label.
Added Type-Enhancement, Library-Core, Area-Library, Triaged labels.

@DartBot DartBot added Type-Enhancement library-core area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. labels Jan 24, 2014
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed priority-unassigned labels Feb 29, 2016
@lrhn lrhn added the core-m label Aug 11, 2017
@floitschG floitschG added core-2 and removed core-m labels Aug 25, 2017
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. core-2 library-core type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

4 participants