Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
clnhlzmn
· 12mo ago · 0 comments
> I've come to see this ubiquitous string of symbols, ?? "", as the JS equivalent to .unwrap() in Rust
Isn't this more like `unwrap_or`?
Comments
[–]
fred_
12mo ago
Author here. It is. I did a poor job explaining what I meant by this. I tried to elaborate
https://news.ycombinator.com/item?id=46089466
. I'll also update the article to reflect this:) Thanks for pointing it out:)
[–]
aeonfox
12mo ago
It's sloppy writing but they do make the distinction over the rest of the paragraph.