Nick Cameron

Results 235 issues of Nick Cameron

Several chapters are marked as TODO and link to 404.html. It would be useful to write down what the authors were thinking should be in these sections to make contribution...

We can use the proc macro hack to get around the `proc_macro_hygiene` feature, and might be able to find ways around other features.

https://gist.github.com/mmun/bffc62a5eb6ad648b7f7b2825364962c (cc @mmun) - [ ] - Add `scan!` for scan-not-a-whole-line case. - [ ] - Robust parsing: `scan!` should keep trying to match the input until it finds something...

It currently returns None on an error, but maybe it should return None on a blank line and panic on an error.

e.g., `scanln!("{}", *x)` would infer the type of `x`, read that type, then save it into `x`

Perhaps with an implicit loop? ``` scanlns!("{} {}", x: u32, y:String, { ... }); ``` Or perhaps it should still have expression form, but lets you specify types as arguments,...

We need specialisation with the 'lattice rule' to offer a nice inference-based API which can use the same functions for scanning `T` as `Result`.

library functionallty.

a useful and working `scanln!` macro