Closed
Description
Current overview says stringref
is nullable, while not saying anything about default value for stringview
.
Reading #13 I got thinking whether saying that stringref
& stringview
are both default constructible to a string of length 0 and a reference to some default constructed stringref
respectively.
The basic insight is that, for my understanding, there are no ways to tell null stringref
and 0-length stringref
apart.
If this is workable, this simplifies both the spec, use of stringview
as locals, and also the interaction with JS, since removes the null special case plus the need for a default value:
- The set of JS representations of stringref values is the set of JS strings, plus JS null.
- There is no default value for a stringref. If a stringref argument is not supplied, that's an error.
That can just become:
- The set of JS representations of stringref values is the set of JS strings.
- Default value for a stringref is "".
Metadata
Metadata
Assignees
Labels
No labels