Better HN
topnewbestaskshowjobs
Log inSign up

shadow31

5 karma · joined Aug 21, 2020 (6y ago) · 3 submissions

Submissions

comment 5y ago · link · parent

Don't forget C, after all `C2x` is coming...

comment 5y ago · link · parent

> Why not implicitly clone in some cases (since classes like String gets used so frequently)

Because they get used so frequently. Why would we want to add expensive clones to frequently used operations?

This would be like asking why LINQ methods in C# aren't deferred by default. Yes, there's a few situations where that would be nice but it would make the functions largely useless because of how poor performance would be.