News for hackers. Stuff that matters.
Re:Compiler Development: Rust or OCaml? by timeon on Monday August 07, 2023 @07:38PM (#37042432)
> The Rust and OCaml code from the article looked decent to me

> RefCell<u32>

I'm not sure.

Re:Compiler Development: Rust or OCaml? by stouset on Monday August 07, 2023 @10:07PM (#37043597)
For the uninitiated, this is a completely harmless choice. But it suggests a potential lack of understanding of some pretty fundamental parts of Rust.
Re:Compiler Development: Rust or OCaml? by foldr on Tuesday August 08, 2023 @03:32AM (#37045695)
Although I think the implementation of the gensym function is broken, the article does explain that it wasn’t possible to use &mut u32 because multiple references to the value were required. It would be more idiomatic to use Cell rather than RefCell, but there’s nothing really wrong with using RefCell as far as I can see.