3 ms·
Sorry for going off topic, but something fun I've learned lately is that in Nim (which compiles to C) changing: let x = foo() ... to ... const x = foo() ...
by __MatrixMan__ 3y ago
Sorry for going off topic, but something fun I've learned lately is that in Nim (which compiles to C) changing:
let x = foo()
... to ...
const x = foo()
...runs foo at compile time to get the value. I dunno I just thought it was neat.