Hacker News new | ask | show | jobs
by pjmlp 1520 days ago
Yeah, I was wrong on that regard.

Although I still think with a mix of template metaprogramming and constexpr might be possible, however it would be a very low ROI on such example.

And it would still be worse than the other languages, so defeat accepted.

1 comments

I'm not sure deferred conversion is a bad thing in this toy instance.

I agree that being able to easily tradeoff between time and space is an important property of compile time evaluation and C++ doesn't make that easy with the no escaped allocations requirement.

On the other hand, I shudder to think what will happen to binary size. It can't be any worse than codegenning all the things with reckless abandon... Right?