Nick Cameron
Nick Cameron
I see, thanks! How about we make `new` always `const` unless `default` is specified?
I think that if there are no field annotations, then we can always generate a `const` fn? Perhaps we could so something like allow `#[new(const value = "...")]` which means...
> It is potentially a backwards compatability issue though. (The Readme specifically mentions adding a new member without breaking comparability as a goal of the crate.) Adding a use of...
Another question from Reddit: should we have a method (e.g., `lines`) to iterate the lines in a reader, rather than just iterating the reader?
re testing, could you factor out the filtering from the `fetch` function and test just the filtering with a unit test, rather than testing the whole fetch?
Is there any semantic difference between a generator block (`gen { ... }`) and a generator lambda/yielding closure with no arguments (`gen || { ... }`)?
Could someone summarise what is blocking stabilisation here please?
@danielhenrymantilla > From there; could you rename 'a to 'buf, and 'b to 'cursor ? I like the idea of renaming the lifetimes to make them more explanatory, but I'm...
> Ideally, since we are dealing with a cursor / ref type, the methods would be self-based, So the drawback of this approach is that it prevents using the style...
@danielhenrymantilla > in that case, we could consider exposing an extra getter to get that split: -> (&[u8], BorrowCursor…) That's an interesting API idea I hadn't considered! Do you have...