the.bay.news

I guess Zig builds fast by cheating? (Is there a stricter/slower build mode?)

Ziggit
I guess Zig builds fast by cheating? (Is there a stricter/slower build mode?)
Whenever I’m prototyping or experimenting, which is often, I run into things like this. Let’s say I’m experimenting with Number and the get function. I’m not sure if this design is going to work, so I don’t want to write unit tests that 1. I’ll be changing frequently because I’m tweaking the design still or 2. I might completely throw away if this design doesn’t pan out. Anyway, I have this code. const std = @import("std"); const Number = enum { one, two, }; fn get(n: Number) i32 { ...

0 comments

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

No comments yet.