Closed rikuson closed 1 year ago
YAML is more readable for human.
question: |
What is the output of this Rust program?
```rust
macro_rules! m {
($($s:stmt)*) => {
$(
{ stringify!($s); 1 }
)<<*
};
}
fn main() {
print!(
"{}{}{}",
m! { return || true },
m! { (return) || true },
m! { {return} || true },
);
}
answer: 112
Considering publishing quiz file as WEB API, JSON is the best way. In addition, it can deal value which includes multiple line and solve https://github.com/rikuson/quiz/issues/6. It will need jq command.