ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
jfo has joined #zig
jfo has quit [Ping timeout: 252 seconds]
return0e has quit [Ping timeout: 260 seconds]
accidental has joined #zig
<accidental>
hey all, quick question - how would you assert on the error from a !void function?
<accidental>
I'm doing `const val = try my_function(); assert(val == error.MyError)` but I'm getting `operator not allowed for type '@typeOf(bf_interp).ReturnType.ErrorSet!void'` on the equality operator
<Hejsil>
Man, this newline discussion is never gonna end. Can already see the everyday "Why wont you just make it work" posts in the future ):
jfo has joined #zig
<jfo>
:\
hoppetosse has joined #zig
<MajorLag>
Hejsil, welcome to the internet, where people will endlessly complain about the most meaningless details. It is interesting that "Go" was the example, seeing as it is literally impossible to use Allman style bracing in Go.
<MajorLag>
andrewrk: translate-c doesn't handle bitfields (converts to @OpaqueType), but from what I can tell it totally could, using packed structs with @IntTypes. Is this just not handled yet, or is there a good reason not to do that that I'm missing? Nearest I can figure the only real issue with it is that you might have to cast the @IntType when you use it.
Hejsil has quit [Ping timeout: 260 seconds]
jfo has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jfo has joined #zig
zesterer has quit [Quit: zesterer]
davr0s has joined #zig
<GitHub61>
[zig] ice1000 opened pull request #839: Fix some explicit errors (master...patch-1) https://git.io/vxOIY