Better HN
topnewbestaskshowjobs
Log inSign up

schuyler3d

2 karma · joined May 17, 2015 (11y ago) · 2 submissions

Submissions

comment 11y ago · link · parent

OK, fair enough, but it still seems like the rust compiler has enough information to determine whether something is a pure function. It knows whether global or enclosed variables are present and it knows if any of the methods it calls have an &mut ref, which I think is needed even for IO reading

comment 11y ago · link · parent

How would purity be different in Rust than any function signature without any &mut?