If you want to allow multiple `moduleA as a, moduleB as b, ..` then I think you 
need a tiny macro, for example: 
    
    
    import macros
    macro imp*(imports: varargs[untyped]): untyped =
      result = newStmtList()
      for i in imports:
        result.add quote do: from `i` import nil
    imp strutils as su, parseutils as pu
    
    
    Run

Reply via email to