Y
Hacker News
new
|
ask
|
show
|
jobs
by
clnhlzmn
196 days ago
> 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`?
2 comments
fred_
194 days 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:)
link
aeonfox
196 days ago
It's sloppy writing but they do make the distinction over the rest of the paragraph.
link