5 ms·
Oh man that's amusing -- I'm not up on Rust internals, but it seems like it's used a funny test case for some other compiler ability?
by girvo 5y ago
Oh man that's amusing -- I'm not up on Rust internals, but it seems like it's used a funny test case for some other compiler ability?
- duskwuff 5y ago"yeet" is being used as a placeholder for a keyword which will rethrow errors to a caller. It probably won't actually be called "yeet"; they're just using a deliberately silly keyword to keep discussion focused on the functionality. https://areweyeetyet.rs/ https://areweyeetyet.rs/
- radarsat1 5y agoI mean.. "rethrow" sounds fine?
- heinrich5991 5y agoYour comment demonstrates why they chose "yeet". People start discussing the name before the feature, and choosing a name that is obviously not the final one lets them say "look, you don't have to discuss this yet".
- School-Cotton 5y agoWell, if they wanted people not to discuss the name, picking a polarizing, very distinctive, extremely annoying name is about the worst thing they could have done, even as a temporary placeholder.
- fhars 5y agoThey haven't even decided if this should be a language feature at all, an you are already bikeshedding the name...
- rocqua 5y agoBikeshedding from the outside is fine. As long as actual decision makers and productive project members aren't participating, bikeshedding can even be fun.
- themulticaster 5y agoBe careful with that - some Rust team members are active around HN [1], some are even participating in the comment section for this post. So I guess we need to exclude them from the outsider-exclusive bikeshedding event. I agree, bikeshedding can be fun, as long as it's not during a meeting. [1] Steve Klabnik, I know you're going to see this - just wanted to say hi, I hope you're having a nice day :)
- steveklabnik 5y agoI'm doing okay, thanks! I'm not on any Rust teams, anymore, though. There are some other folks around so your point isn't incorrect, only about me.
- sgtnoodle 5y agoIt's not really my place to warn you since it's not my problem, but I take exception to your assertion that the poster is in error. I think we should raise the bar, and check ourselves when being too critical. Try not to panic when other folk throw out ideas, even when you find fault in them. I didn't expect this to be a political topic, unlike abortion the last few days. Yeetsh! I've been recently working on a new system that involves a custom IDL. We ended up adding a "[<=]" syntax, but we were worried it would be confusing to new developers. We realized it would make people happy to have an excuse to type smiley faces, though.
- sgtnoodle 5y agoI guess folk here don't like puns.
- efaref 5y agoIt's not necessarily a "re-"throw. It could just be a throw of a newly detected error, like: try { if bad_thing { do yeet Error::new(...); } carry_on() } Just plain "throw" would probably be fine, but I understand not wanting to bikeshed it at this stage. Weirdly, "yeet" really does convey the sense of "just give up and chuck this thing back instead" that makes it a reasonable nice converse of "try", i.e. "try { yeet }".
- dathinab 5y agoBikeshedding is a major pain for developing in large projects. Naming bikeshedding is one of the worst kind of bikeshedding. By now I'm sure of two things: - People will not agree on a name. - People will diverge any technical discussion again and again and again because they need to discuss naming. So in the end most likely there will be some formal or informal survey and then the language teem will do a top-down decisions for one of the more well liked candidates, it's as far as I can tell pretty much the best way to go. (Theoretically you could have a vote, but then you need a proper not easily manipulated voting system people need to take serious, or it will be named not yeet in the end because people are trolls). EDIT: Also this is not a developer discussion so I guess it's fine here ;)
- TheCycoONE 5y agoOh, if we're bike shedding I propose ¿ as the natural syntax (because it jumps to ?.) /s
- oxff 5y agoleaving it as yeet sounds fine to me honestly
- cormacrelf 5y agoI’m puzzled as to why this PR used “do yeet” and not just “yeet”. Are they bikeshed-avoiding the bikeshed-avoidance because just “yeet” would actually be ergonomic and fun and therefore become a candidate if not deliberately sabotaged? Was “yeet” too credible? Is this admission paving the way for actually using “yeet” as the final syntax later? This drama and more, nightly at 7pm.
- the8472 5y ago`do` already was a reserved keyword, so it doesn't cause any conflicts with identifiers when parsing
- felurx 5y ago"yeet is for the people" is a wonderful quote from that page.
- dathinab 5y ago> probably Pretty much guaranteed, as "do yeet" is also rather long. Likely some new edition introduced keyword/syntax or similar will be used. Also while yeet is "fun" very few want to see it in the language for real ;)