_whitelogger has joined #racket
iyzsong has quit [Ping timeout: 252 seconds]
dented42 has quit [Ping timeout: 245 seconds]
iyzsong has joined #racket
ZombieChicken has quit [Ping timeout: 256 seconds]
emma_ has joined #racket
<
soegaard>
bremner: ^
<
bremner>
update is pretty much real time
<
soegaard>
No reload needed?
<
bremner>
ah, there's a checkbox for "live updates"
georges-duperon has quit [Quit: Leaving]
mzan has joined #racket
ziyourenxiang has quit [Ping timeout: 268 seconds]
dented42 has joined #racket
<
kefin>
Anyone know how to not escape strings inside response/xexpr or response/full?
<
soegaard>
not to ?
<
soegaard>
response/xexpr is according to the docs equivalent to:
<
soegaard>
(response/full
<
soegaard>
code message seconds mime-type
<
soegaard>
(append headers (map cookie->header cookies))
<
soegaard>
(list preamble (string->bytes/utf-8 (xexpr->string xexpr))))
<
soegaard>
therefore my best suggestion is to use response/full in order to bypass xexpr->string
<
kefin>
soegaard, that's possible, it's just a lot of boilerplate
<
soegaard>
Put the boilerplate in a function.
<
kefin>
wish there was something like (do-not-escape ,(my-safe-computation)) that I could use
rnmhdn has joined #racket
kefin has quit [Read error: Connection reset by peer]
pera has joined #racket
dan_f has joined #racket
`micro has joined #racket
dented42 has quit [Ping timeout: 244 seconds]
Gibstick is now known as s455wang
dented42 has joined #racket
SenasOzys has joined #racket
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #racket
pierpal has quit [Ping timeout: 240 seconds]
Lowl3v3l has left #racket [#racket]
libertyprime has quit [Ping timeout: 268 seconds]
dented42 has quit [Ping timeout: 252 seconds]
dddddd has quit [Remote host closed the connection]
vraid has joined #racket
bendersteed has joined #racket
mzan has left #racket [#racket]
jao has quit [Remote host closed the connection]
ubLIX has joined #racket
dented42 has joined #racket
dan_f has quit [Quit: dan_f]
jao has joined #racket
bendersteed has quit [Quit: bye]
vraid has quit [Ping timeout: 256 seconds]
dented42 has quit [Ping timeout: 252 seconds]
ubLIX has quit [Quit: ubLIX]
rnmhdn has quit [Ping timeout: 272 seconds]
libertyprime has joined #racket
vraid has joined #racket
soegaard has quit [Quit: soegaard]
selimcan has joined #racket
dddddd has joined #racket
dented42 has joined #racket
hannes4 has joined #racket
<
hannes4>
Hi, Why does (assoc 'a '(('a 1) ('b 2))) not work when (assoc "a" '(("a" 1) ("b" 2))) does?
<
tilpner>
Because you're double quoting
<
hannes4>
Aha. Thanks!
orivej has quit [Quit: orivej]
<
hannes4>
So, in the quoted version, what is in the list? The first sublist,
<
hannes4>
and the first element, is it the symbold "'a"?
<
hannes4>
Which is different from the symbol "a"... or, how do i think about it?
ZombieChicken has joined #racket
<
tilpner>
''a is (list 'quote 'a)
orivej has joined #racket
<
tilpner>
rudybot: init racket
<
rudybot>
tilpner: error: with-limit: out of time
<
hannes4>
Hmm, think I have to read up on quote. Off to the documentation...
qeval has joined #racket
<
tilpner>
r> (~s '('a))
<
qeval>
> "((quote a))"
<
tilpner>
r> (assoc 'a '((a 1) (b 2)))
<
hannes4>
yes, got that.
<
hannes4>
But i was supprised at ''a = (list 'quote 'a)
<
hannes4>
Thinking about it: 'a = (quote a), so ''a = '(quote a) = (list 'quote 'a). So makes sense now i think
<
bremner>
''a = (quote (quote a)) i'd expect
<
bremner>
rudybot: init racket/base
<
rudybot>
bremner: your racket/base sandbox is ready
<
bremner>
rudybot: eval ''a
<
rudybot>
bremner: ; Value: ''a
<
bremner>
rudybot: (equal? ''a (quote (quote a)))
<
rudybot>
bremner: ; Value: #t
<
hannes4>
rudybot: (equal? ''a (list 'quote 'a))
<
rudybot>
hannes4: your sandbox is ready
<
rudybot>
hannes4: ; Value: #t
ubLIX has joined #racket
dented42 has quit [Ping timeout: 264 seconds]
<
hannes4>
Anyway, thinks for the help!
<
bremner>
rudybot: (equal? (list (quote a)) (quote (quote a)))
<
rudybot>
bremner: ; Value: #f
<
bremner>
well. that doesn't make much sense to me, I must be missing some reader subtlty
<
lexi-lambda>
bremner: (quote (quote a)) is equivalent to (list 'quote 'a)
epony has quit [Remote host closed the connection]
epony has joined #racket
libertyprime has quit [Ping timeout: 252 seconds]
slemonide has joined #racket
slemonide has quit [Remote host closed the connection]
groovy2shoes has quit [Read error: Connection reset by peer]
wingsorc has joined #racket
libertyprime has joined #racket
wingsorc has quit [Read error: Connection reset by peer]
wingsorc has joined #racket
libertyprime has quit [Ping timeout: 252 seconds]
dented42 has joined #racket
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #racket
SenasOzys has quit [Remote host closed the connection]
SenasOzys has joined #racket
epony has quit [Ping timeout: 246 seconds]
dan_f has joined #racket
SenasOzys has quit [Ping timeout: 246 seconds]
epony has joined #racket
dented42 has quit [Ping timeout: 260 seconds]
ubLIX has quit [Quit: ubLIX]
dented42 has joined #racket
eponym has joined #racket
epony has quit [Ping timeout: 252 seconds]
dented42 has quit [Ping timeout: 246 seconds]
eponym is now known as epony
epony has quit [Ping timeout: 268 seconds]
epony has joined #racket