4 ms·
Rust is bloody great, the type system is so good. My thesis code has a bunch of type conversions, I managed to emulate 'do' notation (Haskell) of sorts via the
by isubasinghe 5y ago
Rust is bloody great, the type system is so good.
My thesis code has a bunch of type conversions, I managed to emulate 'do' notation (Haskell) of sorts via the type system, but I can now also convert between types really easily. So bloody happy with it.
for example `n.unbind().bind()` can convert to a different type but `inside_n = n.unbind()` will let you work with the data inside the container `n` and after you are finished you can call `inside_n.bind()` to lift it back up to the container type.