Re:Fighting Rust's Expressive Type System
by pirocks on Sunday October 25, 2020 @01:35PM
(#24888124)
In kotlin your example would be:
This would have to be modified in rust to apply to both error and option types, as well as working on stuff other than the . operator, but I think it could be made to work.
The main difference is that the ?. operator in kotlin works at the expression level, instead of the function level.
[ Parent
| on HN ]
There are no comments on this comment yet.