ASau has joined #racket
monkey_ has joined #racket
capfredf has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
badkins has joined #racket
s-liao has quit [Quit: Ping timeout (120 seconds)]
s-liao has joined #racket
capfredf has joined #racket
s-liao has quit [Ping timeout: 256 seconds]
klf has joined #racket
<klf> (define (foo x y)
<klf> (define x 5) x)
<klf> (display x)
<klf> Why does it say x is undefined?
<klf> (foo "hello" 10)
<klf> rudybot: (define (foo x y)
<klf> <klf> (display x))
<rudybot> klf: I've just been surprised I can't do something like, `(define (foo x y) "Takes an X and a Y, does the thing with them")`
<klf> rudybot: (define (foo x y) (display x))
<rudybot> klf: Done.
<klf> rudybot: eval (foo "hello" 10)
<rudybot> klf: ; stdout: "hello"
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 250 seconds]
ur5us_ has joined #racket
<klf> oddly enough, that same code works in scheme.
<bremner> inner defines need to be at the top of the function
<bremner> or start a begin block e.g.
<bremner> I think it's maybe a bug that that isn't caught before runtime
<bremner> but that's just like, my opinion, man
<klf> bremner, maybe, because if you copy-and-paste into that interpreter, it didn't complain
<klf> s/didn't/doesn't/
haskal has joined #racket
<klf> what's the other bot besides rudybot?
ec has quit [Quit: ec]
s-liao has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
s-liao has quit [Quit: Client closed]
capfredf has joined #racket
s-liao has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
badkins has quit [Remote host closed the connection]
casmajavi has joined #racket
casmajavi has quit [Remote host closed the connection]
casmajavi has joined #racket
notzmv has quit [Remote host closed the connection]
casmajavi has quit [Remote host closed the connection]
s-liao has quit [Ping timeout: 256 seconds]
notzmv has joined #racket
ec has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
s-liao has joined #racket
monkey_ has quit [Ping timeout: 256 seconds]
ur5us_ has quit [Ping timeout: 240 seconds]
badkins has joined #racket
capfredf has joined #racket
badkins has quit [Ping timeout: 240 seconds]
capfredf has quit [Ping timeout: 240 seconds]
monkey_ has joined #racket
monkey_ has quit [Ping timeout: 272 seconds]
codingquark has quit [Ping timeout: 256 seconds]
ur5us_ has joined #racket
codingquark has joined #racket
capfredf has joined #racket
ec has quit [Ping timeout: 240 seconds]
ec has joined #racket
Avichi has quit [Quit: Client closed]
capfredf has quit [Ping timeout: 256 seconds]
s-liao has quit [Quit: Client closed]
ur5us_ has quit [Ping timeout: 240 seconds]
skapata has quit [Remote host closed the connection]
klf has quit [Quit: This computer has gone to sleep]
klf has joined #racket
notzmv has quit [Ping timeout: 240 seconds]
s-liao has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 250 seconds]
ur5us_ has joined #racket
klf has quit [Quit: This computer has gone to sleep]
klf has joined #racket
Avichi has joined #racket
s-liao has quit [Quit: Client closed]
notzmv has joined #racket
jryans has quit [Quit: You have been kicked for being idle]
klf has quit [Quit: This computer has gone to sleep]
ur5us_ has quit [Ping timeout: 240 seconds]
TCZ has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 272 seconds]
s-liao has joined #racket
TCZ has quit [Quit: Leaving]
badkins has joined #racket
badkins has quit [Ping timeout: 256 seconds]
jboy has quit [Quit: bye]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
s-liao has quit [Quit: Ping timeout (120 seconds)]
s-liao has joined #racket
jboy has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 272 seconds]
capfredf has joined #racket
badkins has joined #racket
s-liao has quit [Quit: Client closed]
badkins has quit [Ping timeout: 240 seconds]
dzoe has quit [Ping timeout: 252 seconds]
dzoe has joined #racket
epony has quit [Quit: QUIT]
zostj has joined #racket
s-liao has joined #racket
morte_ has joined #racket
skapata has joined #racket
skapata has joined #racket
skapata has quit [Changing host]
zostj has quit [Quit: WeeChat 3.4]
casmajavi has joined #racket
capfredf has quit [Ping timeout: 250 seconds]
zostj has joined #racket
badkins has joined #racket
zostj has quit [Client Quit]
zostj has joined #racket
badkins has quit [Ping timeout: 240 seconds]
s-liao has quit [Quit: Client closed]
s-liao has joined #racket
s-liao has quit [Client Quit]
epony has joined #racket
capfredf has joined #racket
capfredf_ has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
Avichi has quit [Ping timeout: 256 seconds]
morte_ has quit [Ping timeout: 240 seconds]
<scubagear[m]> Is it true that the convention of ending a procedure name with an exclamation indicates that the procedure modifies one of its arguments? Would you also do the same if the result of a procedure is instead a lambda that modifies one of its arguments?
<scubagear[m]> * of its own (the lambda's) arguments?
<tonyg> scubagear[m]: yeah I think that's generally true. Macros, too (e.g. `set!`). But it definitely gets hazy when the mutation is one step removed
<tonyg> scubagear[m]: then maybe I'd consider something like `do-something!-maker`, or `make-do-something!`, but the `!` there is logically kind of quoted and not part of the name of the factory, if you see what I mean. Like ideally it'd be called `make-"do-something!"` but you can't quote like that :-)
<scubagear[m]> tonyg: yeah I see what you mean
capfredf_ has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
winny has quit [Remote host closed the connection]
winny has joined #racket
Codaraxis has quit [Ping timeout: 256 seconds]
capfredf has joined #racket
zostj has quit [Quit: WeeChat 3.4]
capfredf has quit [Ping timeout: 256 seconds]
zostj has joined #racket
Codaraxis has joined #racket
Codaraxis_ has joined #racket
Codaraxis has quit [Ping timeout: 260 seconds]
skapata has quit [Read error: Connection reset by peer]
badkins has joined #racket
zostj has quit [Quit: WeeChat 3.4]
ec has quit [Quit: ec]
ec has joined #racket
capfredf has joined #racket
ec has quit [Client Quit]
capfredf has quit [Ping timeout: 252 seconds]
ec has joined #racket
ns12 has quit [Quit: bye]
ns12 has joined #racket
cwebber has quit [Read error: Connection reset by peer]
simendsjo has joined #racket
wingo has quit [Ping timeout: 256 seconds]
zostj has joined #racket
cwebber has joined #racket
badkins has quit [Remote host closed the connection]
evdubs has quit [Ping timeout: 250 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 268 seconds]
zostj has quit [Quit: WeeChat 3.4]
evdubs has joined #racket
badkins has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
TCZ has joined #racket
mdhughes has quit [Remote host closed the connection]
mdhughes has joined #racket
capfredf has joined #racket
ur5us_ has joined #racket
ec has quit [Quit: ec]
unyu has quit [Quit: brb]
simendsjo has quit [Ping timeout: 240 seconds]
ec has joined #racket
unyu has joined #racket
cwebber has quit [Read error: Connection reset by peer]
capfredf has quit [Remote host closed the connection]
TCZ has quit [Quit: Leaving]
casmajavi has quit [Remote host closed the connection]
badkins has quit [Remote host closed the connection]
ur5us_ has quit [Remote host closed the connection]
ur5us_ has joined #racket
capfredf has joined #racket
badkins has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
tfeb has joined #racket
badkins has quit [Ping timeout: 256 seconds]
capfredf has quit [Ping timeout: 240 seconds]
tfeb has quit [Quit: died]
TCZ has joined #racket
monkey_ has joined #racket
capfredf has joined #racket
capfredf has quit [Remote host closed the connection]
capfredf has joined #racket
capfredf has quit [Ping timeout: 272 seconds]
unyu has quit [Quit: WeeChat 3.4]
s-liao has joined #racket
monkey_ has quit [Ping timeout: 272 seconds]