nim-lang / Nim

Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).
https://nim-lang.org
Other
16.55k stars 1.47k forks source link

withDir also available on Nim #14560

Closed juancarlospaco closed 3 years ago

juancarlospaco commented 4 years ago

Summary

withDir() feels very useful on NimScript, being a simple tiny template, I was wondering if is possible to also have it on Compiled Nim std lib, just 1 convenience proc, should be relatively easy, same API, same Documentation, same Examples, just moved into Nim. :)

timotheecour commented 4 years ago

Maybe in std/scripting Along with other procs intended to write high level scripts, std/os staying a bit lower level to avoid kitchen sink; eg:

juancarlospaco commented 4 years ago

I dont have an opinion on where it should live, as long as I can import it and use it on compiled Nim. :smile:

ringabout commented 3 years ago

I want this function too. Where should I place this function? std/scripting or in fusions?

Araq commented 3 years ago

I use it all the time too... It should be in fusion / scripting, I think.