@snaggen to Rust • 9 months agoDon't write Rust like it's Javajgayfer.commessage-square34arrow-up178arrow-down17
arrow-up171arrow-down1external-linkDon't write Rust like it's Javajgayfer.com@snaggen to Rust • 9 months agomessage-square34
minus-square@[email protected]linkfedilink7•9 months agoI think, the point is that in Python (like Rust) that construct is a module. In Java, a module does not exist in that sense. You put everything into classes in Java and static classes, i.e. singleton objects, are what you use instead of modules…
I think, the point is that in Python (like Rust) that construct is a module. In Java, a module does not exist in that sense. You put everything into classes in Java and static classes, i.e. singleton objects, are what you use instead of modules…
Interesting, that definitely makes sense!