00:13
ampersam has left #racket [#racket]
00:23
pharonix71 has quit [Changing host]
00:23
pharonix71 has joined #racket
00:32
lucasta has joined #racket
00:46
xgqt has quit [Quit: WeeChat 3.8]
00:49
xgqt has joined #racket
01:12
badkins has quit [Remote host closed the connection]
01:13
badkins has joined #racket
01:15
badkins has quit [Remote host closed the connection]
01:40
<
bremner >
in general polynomials have multiple roots. This is an example, x³=-8 has several possible solutions.
01:41
<
bremner >
not sure why racket prefers one of the complex solutions, but it is valid.
02:25
badkins has joined #racket
02:30
badkins has quit [Ping timeout: 252 seconds]
04:47
JoelMcCracken has quit [Ping timeout: 252 seconds]
04:47
casaca has quit [Ping timeout: 252 seconds]
04:50
JoelMcCracken has joined #racket
04:50
casaca has joined #racket
05:31
priime has joined #racket
05:45
ormaaj has quit [Read error: Connection reset by peer]
05:51
ormaaj has joined #racket
05:52
shawnw has joined #racket
06:08
lucasta has quit [Remote host closed the connection]
06:27
badkins has joined #racket
06:33
badkins has quit [Ping timeout: 276 seconds]
06:50
priime has quit [Ping timeout: 240 seconds]
07:07
henrytill has quit [Ping timeout: 248 seconds]
07:07
casaca has quit [Ping timeout: 246 seconds]
07:07
JoelMcCracken has quit [Ping timeout: 265 seconds]
07:08
henrytill has joined #racket
07:09
casaca has joined #racket
07:10
JoelMcCracken has joined #racket
07:22
JoelMcCracken has quit [Ping timeout: 260 seconds]
07:22
henrytill has quit [Ping timeout: 260 seconds]
07:23
casaca has quit [Ping timeout: 260 seconds]
07:24
JoelMcCracken has joined #racket
07:24
henrytill has joined #racket
07:25
casaca has joined #racket
07:32
shawnw has quit [Ping timeout: 276 seconds]
07:36
shawnw has joined #racket
08:13
Tuplanolla has joined #racket
08:42
xgqt has quit [Quit: WeeChat 3.8]
09:17
skapata has quit [Remote host closed the connection]
10:10
mwnaylor has quit [Ping timeout: 248 seconds]
10:22
xgqt has joined #racket
11:05
tfeb has joined #racket
11:09
tfeb has quit [Client Quit]
11:50
pharonix71 has quit [Ping timeout: 255 seconds]
11:53
pharonix71 has joined #racket
12:08
<
ggVGc >
Is there a more idiomatic way to write this? (apply (curry tabular headers) body)
12:14
<
bremner >
does just (apply tabular headers body) work?
12:16
<
ggVGc >
bremner: no, the point is that I am taking body as an optional argument list, and I want to pass it as such to tabular
12:16
<
ggVGc >
not as a list but as actual arguments
12:17
<
ggVGc >
I'm fairly new to Racket so not sure if this is the way to commonly do it
12:17
<
bremner >
that's what apply does with the last argument
12:18
<
ggVGc >
ah, right... that actually works
12:20
<
ggVGc >
I can't (I think) use the default in the definition, since it will rely on one of the other arguments
12:20
<
ggVGc >
I don't particularly like using set! but it seems like the correct tool in this case
12:30
<
bremner >
I would use a local variable, initialized based on config and headers
12:30
<
bremner >
let me try something...
12:32
<
ggVGc >
the issue with that is that I actually want shadowing, since I don't like the risk of accidentally using the original argument further down
12:34
<
ggVGc >
oh, hm, didn't know it worked if I changed the order
12:34
<
ggVGc >
then it's all fine. Thanks :)
12:46
<
ggVGc >
The issue being that if I default to null and just pass it, the default will not trigger in 'tabular'
13:00
<
bremner >
there are definitely options, but I'm not sure if one is obviously better. You can define a helper function to map headers to config and use it in both places
13:38
terrorjack has joined #racket
13:54
bremner has quit [Remote host closed the connection]
13:54
bremner has joined #racket
14:03
shawnw has quit [Ping timeout: 240 seconds]
14:36
vancz has quit [Ping timeout: 250 seconds]
14:40
vancz has joined #racket
14:54
lucasta has joined #racket
15:08
terrorjack has joined #racket
15:13
vancz has joined #racket
15:44
random-jellyfish has joined #racket
15:44
morte_ has joined #racket
16:01
random-jellyfish has quit [Quit: Ping timeout (120 seconds)]
16:02
random-jellyfish has joined #racket
16:07
skapata has joined #racket
16:26
badkins has joined #racket
16:32
badkins has quit [Ping timeout: 250 seconds]
16:35
random-jellyfish has quit [Quit: Client closed]
16:35
random-jellyfish has joined #racket
16:47
random-jellyfish has quit [Quit: Client closed]
16:58
random-jellyfish has joined #racket
17:18
random-jellyfish has quit [Quit: Ping timeout (120 seconds)]
17:21
random-jellyfish has joined #racket
17:30
random-jellyfish has quit [Quit: Client closed]
17:32
badkins has joined #racket
17:33
random-jellyfish has joined #racket
17:34
random-jellyfish has quit [Client Quit]
17:38
badkins has quit [Ping timeout: 252 seconds]
17:42
random-jellyfish has joined #racket
17:44
random-jellyfish has quit [Client Quit]
17:47
random-jellyfish has joined #racket
17:54
random-jellyfish has quit [Quit: Client closed]
18:50
morte_ has quit [Ping timeout: 276 seconds]
19:19
morte has joined #racket
19:21
pharonix71 has quit [Ping timeout: 255 seconds]
19:24
pharonix71 has joined #racket
19:32
szkl has joined #racket
19:57
scubagear has quit [Read error: Connection reset by peer]
20:19
skapata has quit [Remote host closed the connection]
20:19
skapata has joined #racket
20:21
mwnaylor has joined #racket
20:24
terrorjack has joined #racket
20:47
scubagear has joined #racket
20:47
morte_ has joined #racket
20:48
<
mwnaylor >
Is there an inverse to the define macro? Basically, something that unbinds a value from its identifier.
20:57
ur5us has joined #racket
21:25
Kratacoa has joined #racket
21:27
morte_ has quit [Remote host closed the connection]
21:32
Kratacoa has quit [Quit: WeeChat 3.8]
21:32
Kratacoa has joined #racket
21:38
morte has quit [Ping timeout: 276 seconds]
21:58
<
bremner >
mwnaylor: unless you are using something like parameters or eval, binding should be static (lexicographic), so I'm not sure that really makes sense.
21:58
<
bremner >
Out of curiousity, what is your use case?
22:10
badkins has joined #racket
22:23
Kratacoa has quit [Ping timeout: 240 seconds]
22:34
lucasta has quit [Remote host closed the connection]
22:43
morte has joined #racket
22:44
<
mwnaylor >
bremner: most of my lisp hacking is elisp. elisp has the functions makunbound and fmakunbound. With a longstandig emacs process, all "temporary" definition get stuck. I like the option of explicitly deleting bindings.
22:48
Tuplanolla has quit [Quit: Leaving.]
22:48
morte has quit [Remote host closed the connection]
22:48
<
bremner >
although some people use long running racket REPLs, I think it is more idiomatic to restart fairly often from a set of definitions.
22:48
<
bremner >
(i.e. F5 in racket-mode / drracket0
23:55
badkins has quit [Remote host closed the connection]