code logs -> 2020 -> Thu, 21 May 2020< code.20200520.log - code.20200522.log >
--- Log opened Thu May 21 00:00:22 2020
01:12 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has joined #code
01:12 mode/#code [+o himi] by ChanServ
01:18 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has quit [[NS] Quit: Kernel upgrade whee]
01:23 McMartin [mcmartin@Nightstar-c25omi.ca.comcast.net] has joined #code
01:23 mode/#code [+ao McMartin McMartin] by ChanServ
01:39 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
02:15 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
04:11 Degi [Degi@Nightstar-ltfolf.dyn.telefonica.de] has quit [Ping timeout: 121 seconds]
04:17 Attilla [uid13723@Nightstar-2dc.p8m.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
04:17 Degi [Degi@Nightstar-j638eh.dyn.telefonica.de] has joined #code
05:49 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [Ping timeout: 121 seconds]
06:16 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:23 Kindamoody|zZz] is now known as Kindamoody
08:13 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
08:13 mode/#code [+o himi] by ChanServ
08:44 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
09:08 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
09:15 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
09:15 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection reset by peer]
09:15 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
09:18 catalyst_ [catalyst@Nightstar-p88uga.dab.02.net] has joined #code
09:21 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds]
09:26 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
09:29 catalyst_ [catalyst@Nightstar-p88uga.dab.02.net] has quit [Connection closed]
09:30 Attilla [uid13723@Nightstar-6br85t.irccloud.com] has joined #code
09:30 mode/#code [+o Attilla] by ChanServ
09:31 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
09:31 mode/#code [+qo Vornicus Vornicus] by ChanServ
09:38 mac is now known as macdjord|slep
10:06 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
13:01 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection closed]
13:01 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
13:10 Alek [Alek@Nightstar-kaiguq.il.comcast.net] has joined #code
13:10 mode/#code [+o Alek] by ChanServ
14:04 celticminstrel [celticminst@Nightstar-nuu42v.dsl.bell.ca] has joined #code
14:04 mode/#code [+o celticminstrel] by ChanServ
14:17 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
14:24 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has quit [Connection closed]
14:24 VirusJTG [VirusJTG@Nightstar-42s.jso.104.208.IP] has joined #code
14:24 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
15:50 Attilla [uid13723@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:47 Kindamoody is now known as Kindamoody|afk
19:50 catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
19:50 catalyst [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Connection reset by peer]
19:56 catalyst [catalyst@Nightstar-etn2d2.dab.02.net] has joined #code
19:58 catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [Ping timeout: 121 seconds]
20:13 Kindamoody|afk is now known as Kindamoody
20:17 catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has joined #code
20:20 catalyst [catalyst@Nightstar-etn2d2.dab.02.net] has quit [Connection reset by peer]
22:04
<&McMartin>
OK, Golang has finally managed to offend my generous sensibilities instead of merely annoying me.
22:05
<&McMartin>
https://stackoverflow.com/questions/35810674/in-go-is-it-possible-to-iterate-over-a-custom-type/35810932
22:06
<&McMartin>
"The short answer is no. The long answer is still no" and then the recommended stdlib approach is worse than C's equivalent.
22:06
<&McMartin>
While at least being close to it
22:13 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
22:27
<~Vornicus>
that's ... wow
22:27
<~Vornicus>
guys what the hell
22:28
<&McMartin>
The C equivalent, incidentally, would be to merge Next() and Get() into the same function, which updates a pointer argument if the return value is also nonzero.
22:28
<&McMartin>
The Java approach would be hasNext() and next() instead of Next() and Get(), which is also an actually sensible API.
22:34
<&McMartin>
Having Next() not actually give you the next value is baffling
22:36
<&McMartin>
Oh yeah also
22:36
<&McMartin>
golang lets you return multiple values which means that you could have one Next() function do all the work
22:38
<~Vornicus>
but?
22:39
<&McMartin>
But they didn't
22:39
<~Vornicus>
they being ...the guys who answered that question or the way golang works?
22:40
<&McMartin>
The guys who answered that question recommend the final answer on the grounds that it matches APIs in the stdlib
22:40
<&McMartin>
So "yes"
22:40
<&McMartin>
*I'm* going to return multiple values
22:42 catalyst_ [catalyst@Nightstar-v6lb30.cable.virginm.net] has quit [The TLS connection was non-properly terminated.]
22:46 Attilla [uid13723@Nightstar-6br85t.irccloud.com] has joined #code
22:46 mode/#code [+o Attilla] by ChanServ
23:33 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has quit [Ping timeout: 121 seconds]
--- Log closed Fri May 22 00:00:23 2020
code logs -> 2020 -> Thu, 21 May 2020< code.20200520.log - code.20200522.log >

[ Latest log file ]