≈ the.bay.news

Error reporting feedback

Ziggit
Error reporting feedback
Full Code: nrv30/int-base-converter: convert u64 between hex, octal, binary, decimal. My first zig project! I made a REPL program, so I print error messages to the user. if (stdout_writer) |writer| { try writer.writeAll("Invalid Command. Missing '('\n"); try writer.flush(); } return error.InvalidCommand; I have to check stdout_writer is not null every time because I made it optional. The reason I did this is because I want to be able to pass the writer as null in my test code to avoid...

Full Code: nrv30/int-base-converter: convert u64 between hex, octal, binary, decimal. My first zig project! I made a REPL program, so I print error messages to the user. if…

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.