TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Arenas and the almighty concatenation operator

27 pointsby asicsp12 months ago

1 comment

o11c12 months ago
This implementation has horrible and unmarked mutability problems, which really should (and can) be avoided. I think it&#x27;s also leaking some memory unnecessarily. The underlying approach is sound though.<p>The `str{}` can be avoided by adding a second template argument and SFINAE&#x27;ing that it can be converted to the first one. Or just overloading as for integers.<p>Some microoptimizations jumped out but those are premature.