arturo icon indicating copy to clipboard operation
arturo copied to clipboard

[VM/lib] Rewrite in a cleaner way

Open github-actions[bot] opened this issue 2 years ago • 0 comments

[VM/lib] Rewrite in a cleaner way

https://github.com/arturo-lang/arturo/blob/ce734e7a32c73173910cdf8f533f56be21febe3b/src/vm/lib.nim#L91

            const cleanExample = replace(strutils.strip(example),"\n            ","\n")
            
        # TODO(VM/lib) Rewrite in a cleaner way
        #  labels: vm, cleanup
        when not defined(WEB):
            let b = newBuiltin(n, alias, rule, "[" & static (instantiationInfo().filename).replace(".nim") & ":" & $(static (instantiationInfo().line)) & "] " & description, static argsLen, args.toOrderedTable, attrs.toOrderedTable, returns, cleanExample, proc () =
                require(n, args)

184143549f05b284d4017e7954f39cc5b783f02d

github-actions[bot] avatar Aug 03 '22 11:08 github-actions[bot]