3 pointsby ziyaadsaqlaina month ago2 comments
  • auxyma month 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?
    • ziyaadsaqlaina month ago
      no one even use nim plus nim dont give inline zig
      • cb321a month ago
        Popularity is one thing { and probably more people use it than a non-existing new PLang you are only at the design phase of :-) }, but I think you misunderstood the backend idea. Nim has a javascript backend via `nim js` and on that backend you can use `emit` to do inline javascript, just as on the C/C++ backends you can use emit to put out C/C++. So, if you did do a zig backend, being able to emit inline zig would be part of that. It may still not be what you want, of course.
        • ziyaadsaqlaina month ago
          I already have using zig keyword user will be able to use whole zig inline like:

          Zig {

          Zig code here

          }

  • gethlya month ago
    Why bother? Just use Odin https://odin-lang.org or Go https://go.dev/ if you want GC.
    • ziyaadsaqlaina month ago
      No one give so much lightweight and cross compile functionality.