[HN Gopher] Arenas and the almighty concatenation operator
___________________________________________________________________
Arenas and the almighty concatenation operator
Author : asicsp
Score : 25 points
Date : 2024-05-30 05:04 UTC (3 days ago)
(HTM) web link (nullprogram.com)
(TXT) w3m dump (nullprogram.com)
| o11c wrote:
| This implementation has horrible and unmarked mutability
| problems, which really should (and can) be avoided. I think it's
| also leaking some memory unnecessarily. The underlying approach
| is sound though.
|
| The `str{}` can be avoided by adding a second template argument
| and SFINAE'ing that it can be converted to the first one. Or just
| overloading as for integers.
|
| Some microoptimizations jumped out but those are premature.
___________________________________________________________________
(page generated 2024-06-02 23:01 UTC)