code logs -> 2018 -> Fri, 28 Sep 2018< code.20180927.log - code.20180929.log >
--- Log opened Fri Sep 28 00:00:53 2018
00:24 macdjord|wurk is now known as macdjord
00:29 Kindamoody is now known as Kindamoody[zZz]
00:46
<&McMartin>
jerith: Do Elixir or Erlang have a syntax like Haskell/ML do for binding a variable name to something you also are destructuring?
00:47
<&McMartin>
l@[h|t]-ish, but not that since apparently @ is a valid character in identifiers
00:48
<&McMartin>
(You can work around it with a separate Match operation, but...)
00:48 celticminstrel [celticminst@Nightstar-gfh71d.dsl.bell.ca] has joined #code
00:48 mode/#code [+o celticminstrel] by ChanServ
00:51
<&McMartin>
s/Match/Case/
01:01 Derakon[AFK] is now known as Derakon
01:11 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
01:12 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
01:12 mode/#code [+o Reiv] by ChanServ
01:39 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code
01:39 mode/#code [+o Alek] by ChanServ
02:16 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has quit [[NS] Quit: bbl]
02:18 Alek [Alek@Nightstar-o723m2.cicril.sbcglobal.net] has joined #code
02:18 mode/#code [+o Alek] by ChanServ
03:30 Degi [Degi@Nightstar-v56p76.dyn.telefonica.de] has quit [Connection closed]
03:38
<&Derakon>
McM: what do you mean by destructuring?
03:39
<&Derakon>
Is this like Python's "assign a new symbol for each element in a tuple" thing? foo, bar = (1, 2)
03:41
<&McMartin>
Yes but for arbitrary nesting and also lists, maps, and user-defined object types
03:42
<&Derakon>
How does it work for a map?
03:42
<&McMartin>
Also "did this even work" is usually part of a conditional
03:42
<&McMartin>
if map = { x: "foo", y: Z } then { .... }
03:43
<&Derakon>
That sounds kind of like Go, which has constructs like fooInt, ok := bar.(int); if !ok {whoops, bar isn't an int}
03:43
<&Derakon>
Aha.
03:43
<&McMartin>
And yes, like a great many things this is something Go implemented as if they heard about it once in a bar 15 years ago and then never really understood what it was for
03:43
<&Derakon>
Heh.
03:44
<&McMartin>
It's the core control-flow-and-binding mechanism in ML- and Haskell-like languages, and Rust borrows strongly (and Swift weakly) from that.
03:44
<&McMartin>
Clojure does it too IIRC but I forget how hard
03:44
<&McMartin>
Erlang, it turns out, does it but lacks a lot of syntactic conveniences, including (apparently) the one I want
03:44
<&Derakon>
How much does Clojure use closures~?
03:45
<&McMartin>
A fair amount, but the stuff I experimented with it less than one might think.
03:45
<&Derakon>
I should probably try out more languages, but TBH usually when I program it's because I want to get shit done, and it's rare that a language I already know isn't well-suited to what I want to do.
03:45
<&McMartin>
Python turns out to be particularly insidious about that.
03:45
<&Derakon>
Eyep.
03:45
<&Derakon>
As long as you don't want type safety.
03:46
<&Derakon>
Or true concurrency.
03:46
<&McMartin>
Erlang's extreme lack of syntactic conveniences comes from being invented by former prolog guys I think
03:46
<&McMartin>
(The actual language semantics are *much* more ML-y at the core, though I have yet to delve into the Extremely Reliable Concurrent/Distributed Processes stuff)
04:47 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:47 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:52 celticminstrel [celticminst@Nightstar-gfh71d.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
05:00 Derakon is now known as Derakon[AFK]
05:00 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
05:00 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
05:10 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
05:58 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
05:58 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
05:58 mode/#code [+o Reiv] by ChanServ
06:22
<@macdjord>
Because of /course/ someone did: https://www.equestriadaily.com/2012/10/editorial-fim-pony-programming-language.html
06:22 macdjord is now known as macdjord|slep
06:44 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
06:45 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
06:45 mode/#code [+o Reiv] by ChanServ
07:16
<&jeroud>
McMartin: Yes, you just put sub-matches in the match.
07:17
<&jeroud>
{:ok, foo = {:a, bar}} = result
07:18 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
07:18
<&jeroud>
(That's Elixir syntax, because it's what I'm more familiar with and I don't have my computer handy right now.)
07:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
07:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
07:18 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
07:18 mode/#code [+o Reiv] by ChanServ
07:22 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
07:22 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
07:22 mode/#code [+o Reiv] by ChanServ
07:23 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
07:30 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
07:37 himi [sjjf@Nightstar-1drtbs.anu.edu.au] has quit [The TLS connection was non-properly terminated.]
07:39 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
07:39 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
07:39 mode/#code [+o Reiv] by ChanServ
07:42 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
07:42 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
07:42 mode/#code [+o Reiv] by ChanServ
07:54 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has joined #code
07:54 mode/#code [+qo Vorntastic Vorntastic] by ChanServ
08:06 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
08:06 Reiv [NSkiwiirc@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
08:06 mode/#code [+o Reiv] by ChanServ
10:02 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
10:02 mode/#code [+o himi] by ChanServ
10:48 You're now known as TheWatcher[d00m]
11:30 Degi_ [Degi@Nightstar-6gopu7.dyn.telefonica.de] has joined #code
13:07
< [R]>
<][_R_][> Indentation is truely best done by the roll of a die
13:07
< [R]>
<kindling> I changed the indentation to highlight the probably problematic parts ;-) [without adding any comments]
13:43 macdjord|slep is now known as macdjord|wurk
14:20 Degi_ [Degi@Nightstar-6gopu7.dyn.telefonica.de] has quit [Connection closed]
15:22 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
15:22 mode/#code [+qo Vornicus Vornicus] by ChanServ
16:15 Kindamoody[zZz] is now known as Kindamoody
16:56 Emmy [Emmy@Nightstar-9p7hb1.direct-adsl.nl] has joined #code
17:20 Vorntastic [uid293981@Nightstar-6br85t.irccloud.com] has quit [[NS] Quit: Connection closed for inactivity]
17:35 Kindamoody is now known as Kindamoody|out
17:40 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
18:00 You're now known as TheWatcher
19:07 gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has quit [[NS] Quit: Quit.]
19:08 gnolam [lenin@Nightstar-ego6cb.cust.bahnhof.se] has joined #code
19:08 mode/#code [+o gnolam] by ChanServ
19:27 Kindamoody|out is now known as Kindamoody
19:33 Degi [Degi@Nightstar-6gopu7.dyn.telefonica.de] has joined #code
20:15 Kindamoody [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
20:21 Kindamoody|autojoin [Kindamoody@Nightstar-eubaqc.tbcn.telia.com] has joined #code
20:21 mode/#code [+o Kindamoody|autojoin] by ChanServ
20:30 Kindamoody|autojoin is now known as Kindamoody
23:34 * abudhabi glares balefully at blinking text in browser tab title.
23:56
<@abudhabi>
I'm gonna go to sleep now, but... how does one set up a reverse DNS record?
--- Log closed Sat Sep 29 00:00:54 2018
code logs -> 2018 -> Fri, 28 Sep 2018< code.20180927.log - code.20180929.log >

[ Latest log file ]