ooh i now have the distinguished honor of having invented a new PL keyword doc.rust-lang.org/nightly/unโ€ฆ
24
58
15
515
unfortunately it's experimental and they are very likely to not keep "yeet" around, the keyword is a placeholder (the "do ..." syntax is used because the keyword can't be added backwards compatibly without an edition, which they won't do just for an experiment)
6
1
91
i *was* half-joking when i tweeted this but the more discussion i've seen the more serious i feel about `yeet` being a half-decent choice for this i think it's fine, and lends the language some fun character
hot take: the throw keyword has the wrong connotation and evokes an image of a language that Rust isn't but i want that feature it should be called `yeet`
20
4
3
125
for folks pointing out that it's slang and unfamiliar, i'll point out that almost certainly more people have "yeet" in their lexicon than use "static" or "for" to mean what programmers use them to mean i do get that it might be cringe though. idk.
14
82
Replying to @ManishEarth
I love the idea of using cringe keywords when prototyping language ideas. 'yeet' is good for that, I'd also have accepted 'chuck' or 'boot' though the latter has some other programmery connotations.

May 6, 2022 ยท 12:26 PM UTC