Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
rictic
· 1y ago · 0 comments
Only for numbers! Strings, objects, arrays, true, false, and null all have an unambiguous ending.
Comments
[–]
stefs
1y ago
but you don't do this for strings either, as shown in the examples - partial strings are pushed even though they're not yet ended:
{"name": "Ale"}
[–]
rictic
OP
1y ago
Oh this isn't about the public API, it's about the internal logic of the parser.