« first day (2572 days earlier)      last day (907 days later) » 

12:43 PM
Are any of you aware of a cargo-plugin or something that is capable of generating preferably an ASCII illustration next to the code (the way the compiler does in the error messages) or at least an interactive web output that illustrates how the lifetimes are flowing in a given piece of code? (As in, what Rust sees for both the explicitly defined and implicitly present ones.)
 
somehow the display of error but when it's working ?
don't know any but that a good idea
 
It would be insanely useful when one is teaching Rust
or for new comers to understand what's going on / debug their code / understand the error messages better?
 
That would be nice to have, but I do not know of such a tool.
 
 
6 hours later…
6:22 PM
@Stargateur The minimal example is what you have in the post. If you can make it work for it, I can make it work for the actual model — Bruno Grieder 3 hours ago
damm I can't down vote twice
 
 
3 hours later…
9:11 PM
work an a little change
3 hours later, rewrite all the file
some fct in std I really want to rewrite
why no return a result or option - -
and there is no alternative that do it
 
 
1 hour later…
10:24 PM
@Stargateur what would split_at return a result or option for?
 
instead of panic ?
it's more easy to call split_at and check result then call len that call split_at that also call len
if this would be a unsafe function ok but it's not
 
ironically, split_first and split_last do return an Option
 
first then => instead of
@FrancisGagné yeah cause there are good fct :p
split_at come from so early of rust
 
10:56 PM
I wonder if this kind of issue would be more suitable on the rfc repo
 

« first day (2572 days earlier)      last day (907 days later) »