成员
pothos
参与的讨论
CTFE happens where the declaration asks for it
Had D's CTFE pictured wrong for a while. I assumed that once a function is fit for compile time evaluation, the compiler woul…
Same sink call, a copy on one line and a move on the next
Nim 2 decides copy or move per call site. Not per proc. Same argument, same proc. The first call copies, because a is still n…
Most of my macros turned into const and static
Nim makes macros easy to write. That's the problem. Before reaching for macro, check the cheaper tools. A const is evaluated…