> magine swapping out Nim's object variants for Rust's enums. I think that 
> would be an improvement.
> 
> Araq has explained on several occasions why he designed Nim's object variants 
> the way he did.

Well you're both right. :-) The current design has its advantages but Rust's 
seems nicer. However, Rust's only works with more borrow checking, IMO. I 
couldn't copy Rust's design for Nim's case objects because back then Rust 
didn't exist. I knew ML's but ML's works because of its immutability. 

Reply via email to