Comment

Comment by gopalv

> then spend the rest of the day learning why I can't do what I want

There's a point when learning's fun, I think the OP is still there.

I wrote a bunch of realtime C++ in 2003, hated it. But last year, I wrote most of my code in C++ and liked it finally.

Lambda and auto was the tipping point where I stopped hating it. Some templates thrown in, but mostly to avoid writing a lot of branches for variants of the same function.

With lambdas I could now write the way I was initially taught programming, mostly by Lispy teachers channeling SICP.

Didn't hate the allocations either with unique_ptr.

parent gopalv 1 year ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton