00:05
emekoi has joined #zig
00:13
hooo has quit [Quit: Connection closed for inactivity]
00:50
<
daurnimator >
emekoi: I think the first.
00:50
<
daurnimator >
Though what often ends up happening when I write that sort of code is trying to share methods
00:51
<
daurnimator >
e.g. then may both have a .lock(delay). And I want to add a common method .lockNow()
00:54
<
daurnimator >
which results in: Mutex = struct { phandle: if (builtin.os == builtin.Os.windows) HANDLE else void, fd: if (builtin.os == builtin.Os.linux) i32 else void, fn lock(self: *@This(), delay: u32) { if (builtin.os == builtin.Os.windows) { ..... windows implementation ..... } else if (linux) { ...... linux imp ..... } } }
00:55
moo has joined #zig
00:58
wootehfoot has quit [Ping timeout: 258 seconds]
01:07
<
emekoi >
daurnimator, yeah that's what Mutex originally looked like
01:36
redfreeman has joined #zig
01:57
moo has quit [Read error: Connection reset by peer]
02:16
zez2c has joined #zig
02:18
zez1c has quit [Ping timeout: 250 seconds]
02:26
zez2c has quit [Ping timeout: 258 seconds]
02:47
redfreeman has quit [Remote host closed the connection]
02:47
redfreeman has joined #zig
02:48
redfreeman has quit [Remote host closed the connection]
03:58
return0e_ has joined #zig
03:58
return0e has quit [Ping timeout: 245 seconds]
05:20
_whitelogger has joined #zig
05:51
darithorn has quit [Quit: Leaving]
06:06
hooo has joined #zig
06:20
return0e_ has quit [Read error: Connection reset by peer]
06:20
return0e has joined #zig
06:36
emekoi has quit [Ping timeout: 268 seconds]
07:25
kristate has joined #zig
07:44
kristate has quit [Remote host closed the connection]
10:57
Zaab1t has joined #zig
11:03
forgot-password has joined #zig
11:42
kristate has joined #zig
14:03
zez2c has joined #zig
14:07
Ichorio has joined #zig
14:27
Shankar has joined #zig
14:29
Shankar has quit [Client Quit]
14:42
wilsonk has quit [Read error: No route to host]
14:43
wootehfoot has joined #zig
14:46
wilsonk has joined #zig
15:47
darithorn has joined #zig
16:16
Zaab1t has quit [Quit: bye bye friends]
16:28
hooo has quit [Quit: Connection closed for inactivity]
19:57
gonzus has joined #zig
19:58
<
gonzus >
Hello, new here, curious about ziglang.
19:58
<
gonzus >
Tried sending a message to the mailing list, it bounced (twice).
19:59
<
gonzus >
said: 500 Error: (InterfaceError) cannot call PreparedStatement.fetchval():
19:59
<
gonzus >
Anyway, the message was about a suggestion: would a better name for orelse be ifnull ?
20:00
<
gonzus >
const tmp_buf = allocateTmpBuffer() ifnull return error.OutOfMemory;
20:52
wootehfoot has quit [Read error: Connection reset by peer]
20:59
_whitelogger has joined #zig
21:36
fsateler_ has joined #zig
21:38
fsateler has quit [Ping timeout: 244 seconds]
21:51
kristate has quit [Remote host closed the connection]
22:33
kristate has joined #zig
22:54
gonzus has quit [Ping timeout: 256 seconds]
23:18
gonzus has joined #zig
23:18
<
gonzus >
andrewrk thanks for that link, and good to see there was already a discussion about this.
23:19
<
gonzus >
I would personally have gone with otherwise, but I guess it is too long. :-)
23:19
<
gonzus >
Also, let me take the chance to say that I really like what I have seen so far about zig, and I think you are doing an awesome job.
23:20
<
andrewrk >
thank you for the kind words
23:20
<
gonzus >
I hope to be able to contribute some code.
23:20
<
gonzus >
If you want to point me to pressing / interesting issues, please feel free to do so.
23:25
<
andrewrk >
gonzus, we do have the "contributor friendly" label