tonyg changed the topic of #racket to: The Racket Programming Language -- https://racket-lang.org/ -- https://gather.town/app/wH1EDG3McffLjrs0/racket-users -- http://pasterack.org -- logged at https://libera.irclog.whitequark.org/racket/ -- This is the right place to ask for help with (Dr)Racket. Remember to wait around for an answer!
ampersam has left #racket [#racket]
pharonix71 has quit [Changing host]
pharonix71 has joined #racket
lucasta has joined #racket
xgqt has quit [Quit: WeeChat 3.8]
xgqt has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Remote host closed the connection]
<bremner> in general polynomials have multiple roots. This is an example, x³=-8 has several possible solutions.
<bremner> not sure why racket prefers one of the complex solutions, but it is valid.
badkins has joined #racket
badkins has quit [Ping timeout: 252 seconds]
JoelMcCracken has quit [Ping timeout: 252 seconds]
casaca has quit [Ping timeout: 252 seconds]
JoelMcCracken has joined #racket
casaca has joined #racket
priime has joined #racket
ormaaj has quit [Read error: Connection reset by peer]
ormaaj has joined #racket
shawnw has joined #racket
lucasta has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 276 seconds]
priime has quit [Ping timeout: 240 seconds]
henrytill has quit [Ping timeout: 248 seconds]
casaca has quit [Ping timeout: 246 seconds]
JoelMcCracken has quit [Ping timeout: 265 seconds]
henrytill has joined #racket
casaca has joined #racket
JoelMcCracken has joined #racket
JoelMcCracken has quit [Ping timeout: 260 seconds]
henrytill has quit [Ping timeout: 260 seconds]
casaca has quit [Ping timeout: 260 seconds]
JoelMcCracken has joined #racket
henrytill has joined #racket
casaca has joined #racket
shawnw has quit [Ping timeout: 276 seconds]
shawnw has joined #racket
Tuplanolla has joined #racket
xgqt has quit [Quit: WeeChat 3.8]
skapata has quit [Remote host closed the connection]
mwnaylor has quit [Ping timeout: 248 seconds]
xgqt has joined #racket
tfeb has joined #racket
tfeb has quit [Client Quit]
pharonix71 has quit [Ping timeout: 255 seconds]
pharonix71 has joined #racket
<ggVGc> Is there a more idiomatic way to write this? (apply (curry tabular headers) body)
<bremner> does just (apply tabular headers body) work?
<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
<ggVGc> not as a list but as actual arguments
<ggVGc> I'm fairly new to Racket so not sure if this is the way to commonly do it
<bremner> that's what apply does with the last argument
<bremner> see the "anti-sum" example on https://docs.racket-lang.org/guide/application.html#%28part._apply%29
<ggVGc> ah, right... that actually works
<ggVGc> thanks
<bremner> welcome.
<ggVGc> as a followup, is this a reasonable way to handle default arguments? https://gist.github.com/ggVGc/9722ff1eb95ff25c6af0b678f4864271
<ggVGc> I can't (I think) use the default in the definition, since it will rely on one of the other arguments
<ggVGc> I don't particularly like using set! but it seems like the correct tool in this case
<bremner> I would use a local variable, initialized based on config and headers
<bremner> let me try something...
<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
<bremner> well, local variable with a different name. But anyway, I think this is better https://paste.debian.net/1277520/
<ggVGc> oh, hm, didn't know it worked if I changed the order
<ggVGc> then it's all fine. Thanks :)
<bremner> sure.
<ggVGc> bremner: do you maybe also have a better solution to this? https://gist.github.com/ggVGc/27f7e9d91adbc5ca89321b413b790356
<ggVGc> The issue being that if I default to null and just pass it, the default will not trigger in 'tabular'
<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
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #racket
bremner has quit [Remote host closed the connection]
bremner has joined #racket
shawnw has quit [Ping timeout: 240 seconds]
vancz has quit [Ping timeout: 250 seconds]
vancz has joined #racket
lucasta has joined #racket
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #racket
vancz has quit []
vancz has joined #racket
random-jellyfish has joined #racket
morte_ has joined #racket
random-jellyfish has quit [Quit: Ping timeout (120 seconds)]
random-jellyfish has joined #racket
skapata has joined #racket
lagash_ has quit [Quit: ZNC - https://znc.in]
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #racket
random-jellyfish has quit [Quit: Client closed]
random-jellyfish has joined #racket
random-jellyfish has quit [Quit: Ping timeout (120 seconds)]
random-jellyfish has joined #racket
random-jellyfish has quit [Quit: Client closed]
badkins has joined #racket
random-jellyfish has joined #racket
random-jellyfish has quit [Client Quit]
badkins has quit [Ping timeout: 252 seconds]
random-jellyfish has joined #racket
random-jellyfish has quit [Client Quit]
random-jellyfish has joined #racket
random-jellyfish has quit [Quit: Client closed]
morte_ has quit [Ping timeout: 276 seconds]
morte has joined #racket
pharonix71 has quit [Ping timeout: 255 seconds]
pharonix71 has joined #racket
szkl has joined #racket
scubagear has quit [Read error: Connection reset by peer]
skapata has quit [Remote host closed the connection]
skapata has joined #racket
mwnaylor has joined #racket
terrorjack has quit [Quit: The Lounge - https://thelounge.chat]
terrorjack has joined #racket
scubagear has joined #racket
morte_ has joined #racket
<mwnaylor> Is there an inverse to the define macro? Basically, something that unbinds a value from its identifier.
ur5us has joined #racket
Kratacoa has joined #racket
morte_ has quit [Remote host closed the connection]
Kratacoa has quit [Quit: WeeChat 3.8]
Kratacoa has joined #racket
morte has quit [Ping timeout: 276 seconds]
<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.
<bremner> Out of curiousity, what is your use case?
badkins has joined #racket
Kratacoa has quit [Ping timeout: 240 seconds]
lucasta has quit [Remote host closed the connection]
morte has joined #racket
<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.
Tuplanolla has quit [Quit: Leaving.]
morte has quit [Remote host closed the connection]
<bremner> although some people use long running racket REPLs, I think it is more idiomatic to restart fairly often from a set of definitions.
<bremner> (i.e. F5 in racket-mode / drracket0
badkins has quit [Remote host closed the connection]