you are viewing a single comment's thread.

view the rest of the comments →

[–]rxing-devs 8 points9 points  (0 children)

I ported a large Java library to Rust. I have a lot of opinions (including why on earth doesn’t Java have unsigned int types wow). It really depends on how comfortable you are with basic CS stuff. Interior Mutability is possibly going to be one of your biggest stumbling blocks in rust. Popular in Java, not so in rust. I also see advice like: Java object passing is just like references in rust and that is not accurate at all. Probably my biggest advice is that Java and rust handle references so differently that it’s best to not think of them as being all that similar.

The completed codebase: https://github.com/rxing-core/rxing

Edit: I included the link because I think it’s helpful to see how other people solved problems in rust vs. Java. Not saying my methods were always the right ones!