Should #{import, library, resource, source} take a stringLiteral? #2158
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
type-enhancement
A request for a change that isn't a bug
Milestone
This issue was originally filed by rice@google.com
According to the Dart Language Specification, the various '#' tags take a stringLiteral, which allows the use of triple-quoted strings, which may also be raw and/or multiline. Is this intended? From the point of view of being able to scan rapidly for source dependencies, this adds a burden to the scanner while seemingly adding little value for developers.
In addition to limiting the valid tag contents to simple strings, one might also want to restrict the contents of those strings to a limited character set. For example, do we really want to allow a library name or prefix to contain control characters or quotes?
The text was updated successfully, but these errors were encountered: