Comment

Comment by VWWHFSfQ

I love Rust. But it seems like there's some kind of religion about allocations.

Don't use String you fool, you want &str!

Don't use Vec you fool, use &[]!

It really puts people off. Because now they have to learn all about lifetimes and that's a fucking nightmare. My advice: Use String. Use Vec. Use Hashmaps. It's all still going to be a million time faster than whatever you were doing in Python, or Java, or Go, or Javascript, or whatever.

parent VWWHFSfQ 3 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton