DEV Community

Discussion on: How IHP uses Haskell's Type System to enforce good patterns

Collapse
 
gabrielfallen profile image
Alexander Chichigin

Unfortunately Rust pretty much stops at "NullPointerExceptions". As long as Rust does not separate pure code from effectful one (on the type level) it's impossible to guarantee purity of view functions or any other functions. Thus the ability to "enforce proper patterns" at compile-time is limited.

Collapse
 
digitallyinduced profile image
digitallyinduced

You hit the nail on the head!