We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There's a lot to digest in this snippet …
match event { Event::KeyDown { keycode: Some(Keycode::Escape), .. } => break 'game, _ => continue 'game, }
With barely any prior introduction to the features shown it ends up hitting newcomers to Rust in the face like a wrecking ball.
It got them all:
enum
Some(…)
Option::Some
Option::
..
'game
break
continue
_
=>
To make things worse: with the exception of "break vs. continue" none of these things can easily be searched for either.
The continue 'game should probably also be just continue, as else one could end up dropping events, that should be handled.
continue 'game
--
Over all it might make sense to add links to corresponding references in Rust by Example when introducing new concepts and syntax.
The text was updated successfully, but these errors were encountered:
Yeah, that's a lot to digest all at once, though my ggez rewrite obsoletes that code
Sorry, something went wrong.
No branches or pull requests
There's a lot to digest in this snippet …
With barely any prior introduction to the features shown it ends up hitting newcomers to Rust in the face like a wrecking ball.
It got them all:
enum
with associated values.Some(…)
(which hides anOption::Some
by eliding theOption::
)..
'game
(I can count the number of times I've seen a label like this be used in the wild on one hand)break
vs.continue
_
=>
To make things worse: with the exception of "
break
vs.continue
" none of these things can easily be searched for either.The
continue 'game
should probably also be justcontinue
, as else one could end up dropping events, that should be handled.--
Over all it might make sense to add links to corresponding references in Rust by Example when introducing new concepts and syntax.
The text was updated successfully, but these errors were encountered: