Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Rescript vs ZScript

$
0
0

Actually ZScript is quite powerful giving comptime execution and variables.
Powerful macros.
I want to make ZScript next cross runtime allowing from one codebase writing libs for bun and deno both using comptime like this:

comptime {
  if (ZScript.runtime == "Deno") {
       ZScript.emit("let runtime = "deno");")
  }
}

Something like this in fact currently ZScript like this support for os,arch,cpu specific code using bun.


Viewing all articles
Browse latest Browse all 2592

Trending Articles