Alternatives
Products that do what I built a JSON-RPC library for Zig with compile time reflection does
Doing dynamic dispatching in a strict static typing language is hard. Something as simple as, map.put("add", add); map.put("hello", hello); fn add(a: i32, b: i32) i32 { return a + b; } fn hello() []const u8 { return "Hello World"; } is impossible because the value type of key/value of the map needs to be the same but all the function types are different. Calling functions with different number of parameters, different parameter types, and different return type dynamically is difficult. Other languages either use dynamic typing, runtime reflection, macro, or passing in one big generic…
- Not indexed yet — check back in a few minutes.
Ranked by how close each launch is in meaning, then by votes. Refine with a description →