rust-quiz's Introduction
rust-quiz's People
rust-quiz's Issues
Struct update syntax for unit and tuple structs
idea by @Victoronz
misc, solver, and borrowck should have notes like unsafe
the unsafe section has a note explaining "how to play the quiz" and the other sections should too
Get names in order
- Borrowck 6 should be borrow checker
- type system 7 should be in the borrow checker category
Make unsafe 1 worse
@Amanieu said that someone suggested also adding an example to unsafe 1 that says (*null,)
. please give us a GitHub handle to credit Amanieu ๐๐๐
Assign difficulties
I think it may be useful to more concretely assign difficulty to questions to help users find the ones most interesting to them.
Maybe "easy"/"hard" labels wouldn't be very great, I would think more about levels, where 1 is the easiest and 3 is the hardest or whatever
auto generate the MD files from the examples?
right now we have to do some (minor) boilerplate every time we add a new quiz entry even though the code and compiler output are already automatically synced from the example to the book. it'd be nice to not have to do any of that somehow and have the explanation for the compiler output be present alongside the example or something?
Rename borrowck to borrow checker
we can words
the intro page should actually be explained
question idea: type/value amgiguity
In some cases the AST doesn't make clear if a path is a type or a value:
foo::<N>()
Here N
could be either. There are some weird fallback rules around this.
question idea: rustdoc re-export:
//! A link to [`Bar`].
mod foo {
pub struct Bar;
}
pub use foo::*;
/// The docs
pub use foo::Bar;
does the intra-doc-link have the docs?
answer: it depends if you have --document-private-items
Make unsafe 3 worse
@RalfJung suggested also adding Strong instead of vec, which doesn't have the shadowing methods.
Code is too wide for mobile
solver 2 and 5 have no explanation
question idea: legacy const generics
solver 7 is named type system 7 in the page
question idea: typing of diverging blocks.
The current rules are really unintuitive, see rust-lang/rust#123590 (comment). It'd make a good question
Example 2 in Unsafe3 is not UB by Miri with tree-borrows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.