Hi everyone I saw zig is and intresting language I am learning it and also making a transpilied High level language over it I want some help with developing syntax.
in my lang there are three types of var declaration
1) using local keyword this are added in arena of the specific function.
2) using let keyword this are on stack but i am finding solution to make strings easier here.
3) manual memory but my transpiler will automatically use defer keywords so they are safe and delete once block exit
4) using unsafe direct fully manual memory management but still my transpiler will not let compiler till once in code the are freed.
Comments
auxym•15h ago
Just an idea but Nim seems to have the features you mentioned. Nim "transpiles" to C, and can even be compiled via `zig cc` (which is an interace to clang). If you really want to, maybe you could make a zig backend for Nim?
auxym•15h ago
ziyaadsaqlain•14h ago