logoalt Hacker News

codynaut • today at 10:01 AM • 1 reply • view on HN

Not wanting to learn a new language in the middle of low level work like that makes sense to me. I love C++, and a coworker has been using Rust so I'm tempted to try it, but I'd start it on a small new project and leave code I already understand alone.


Replies

tialaramex • today at 11:39 AM

That is fair. I think that despite claiming it "can not be overstated" they have in fact overstated how technical their problem is, but it's still difficult enough that it's the wrong time to go learn a new language.

I picked up Rust very easily because it happens that although I had a long career writing C for a living I had also long ago learned the Standard ML of New Jersey (SML) and so the fact Rust is arguably an ML but disguised as a semicolon language worked out. I read the definition of core::mem::drop:

    pub fn drop<T>(_x: T) {}
... and I went "That makes so much sense. What a beautiful language" immediately.

I would encourage you to write some Rust, maybe this Advent of Code is a good excuse if you're the sort of person who enjoys that, and otherwise some toy project of your own. Even if you ultimately don't enjoy Rust, learning it will almost invariably provoke insights that remain relevant in C++.