4 ms·
Unfortunately since this is from 2015, it does not seem everything is still accurate. For example his demo of a list walk with match: https://play.rust-lang.org
by capitainenemo 4y ago
Unfortunately since this is from 2015, it does not seem everything is still accurate. For example his demo of a list walk with match:
https://play.rust-lang.org/?gist=613e13fd515bfca647ca&version=stable https://play.rust-lang.org/?gist=613e13fd515bfca647ca&versio...
Seems to compile just fine even with the edition set to 2015.
- spoiler 4y agoI think (not 100% sure though) that's probably due to NLL being now supported. I don't think they were supported back then.
- runevault 4y agoNLL certainly wasn't around in 2015 because it was only added after I started paying attention to rust in... 2017? 2018? And since it is only an improvement to the parser and wouldn't break code in 2015 mode I'd assume every edition supports the update to the parser.
- kzrdude 4y agoRust blog backs you up https://blog.rust-lang.org/2022/08/05/nll-by-default.html https://blog.rust-lang.org/2022/08/05/nll-by-default.html