Hacker News new | ask | show | jobs
by millstone 2528 days ago
What does functional language mean here?

Rust is not referentially transparent, does not model effects (any function can rm -Rf your drive), permits shared mutable state (RefCell, etc) includes statements not just expressions (break, return). Its most important safeguard is its affine type system, which is absent from Haskell.

1 comments

Break and return are both expressions in Rust.

Item declarations, let statements, expression statements, and macro invocation statements are the four kinds of statements in Rust.