Nim: withDir also available on Nim

Created on 4 Jun 2020  路  4Comments  路  Source: nim-lang/Nim

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.
:)

Most helpful comment

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:

  • pipe (analog to shell |)

All 4 comments

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:

  • pipe (analog to shell |)

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

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

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juancarlospaco picture juancarlospaco  路  3Comments

SolitudeSF picture SolitudeSF  路  3Comments

hlaaftana picture hlaaftana  路  3Comments

hlaaftana picture hlaaftana  路  3Comments

Tronic picture Tronic  路  3Comments