routez
routez copied to clipboard
error: function type cannot have a name
When i run my code, it gives me this error. How i can fix it?
error: function type cannot have a name
pub const HandlerFn = fn handle(Request, Response, []const u8) callconv(.Async) anyerror!void;
Should be as easy as removing handle
from the function type.
Unfortunately that would lead to another issue:
/path/to/routez/src/routez/server.zig:46:16: error: async has not been implemented in the self-hosted compiler yet
frame: @Frame(handleRequest),
^~~~~~~~~~~~~~~~~~~~~
I'm guessing there hasn't been activity on routez
partially because Zig is still a bit unstable?