I encountered this problem a while ago and it's not really important to me 
right now, but I just want to make sure of some things before I forget about it.

The `times` module uses FFI for its procs, same as `io` (exported by the system 
module). Except the system module also has slurp/staticRead and 
gorge/staticExec, which are simple magics for reading files and executing 
processes in compile time thanks to the compiler.

What I'm asking is, could there ever be a `staticTime` proc analog to 
`times.getTime`, or will we have to use a compile time FFI feature when/if it 
arrives? It is technically possible to use `staticExec` in current Nim for the 
same task but it seems too resource demanding. A hook like `staticTime` would 
be useful for things like benchmarking macros, NimScript etc. This feels like 
it should have been discussed before and I do remember it being discussed 
specifically for NimScript, but I just can't find anything on it.

Reply via email to