logoalt Hacker News

functional_devtoday at 11:14 AM1 replyview on HN

What about rust const fn()? I think it guarantees there are no side effects


Replies

IshKebabtoday at 12:02 PM

I think you're right. Equivalent to C++'s constexpr.