samth changed the topic of #racket to: Racket v7.3 has been released: https://blog.racket-lang.org/2019/05/racket-v7-3.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
libertyprime has joined #racket
_whitelogger has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
pie_ has quit [Remote host closed the connection]
libertyprime has quit [Ping timeout: 245 seconds]
badkins has joined #racket
endobson has joined #racket
sword865 has joined #racket
<evdubs> jcowan, base, rackunit, scribble, and racket-doc too many dependencies?
<jcowan> For portability to non-Racket Schemes, yes.
<evdubs> you're not interested in cutting out the scribble doc and unit testing portions?
Sgeo_ has joined #racket
Sgeo has quit [Ping timeout: 268 seconds]
pera has quit [Ping timeout: 246 seconds]
qop has joined #racket
JunjieZ has joined #racket
qop has quit [Quit: q]
efm has joined #racket
GoldRin has joined #racket
pera has joined #racket
notzmv has joined #racket
libertyprime has joined #racket
dddddd has quit [Remote host closed the connection]
jao has quit [Ping timeout: 268 seconds]
acarrico has quit [Ping timeout: 248 seconds]
manualcrank has quit [Quit: WeeChat 1.9.1]
acarrico has joined #racket
endformationage has quit [Ping timeout: 268 seconds]
sauvin has joined #racket
evdubs has quit [Remote host closed the connection]
evdubs has joined #racket
zipper has joined #racket
pera has quit [Ping timeout: 245 seconds]
ubLIX has joined #racket
manualcrank has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
endobson has joined #racket
endobson has quit [Client Quit]
orivej has joined #racket
manualcrank has quit [Quit: WeeChat 1.9.1]
orivej has quit [Ping timeout: 245 seconds]
ubLX has joined #racket
ubLIX has quit [Ping timeout: 245 seconds]
jsomedon has joined #racket
GoldRin has quit [Ping timeout: 248 seconds]
jsomedon has quit [Read error: Connection reset by peer]
jsomedon_ has joined #racket
GoldRin has joined #racket
jsomedon_ has quit [Quit: quiting]
ng0 has joined #racket
libertyprime has quit [Remote host closed the connection]
zipper has quit [Ping timeout: 245 seconds]
ubLX has quit [Quit: ubLX]
zipper has joined #racket
orivej has joined #racket
zipper has quit [Ping timeout: 268 seconds]
orivej has quit [Ping timeout: 268 seconds]
zipper has joined #racket
cpup has quit [Ping timeout: 245 seconds]
zipper has quit [Ping timeout: 245 seconds]
lockywolf has joined #racket
zipper has joined #racket
cpup has joined #racket
JunjieZ has quit [Quit: Konversation terminated!]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
zipper has quit [Ping timeout: 272 seconds]
zipper has joined #racket
ArneBab has quit [Ping timeout: 250 seconds]
zipper has quit [Ping timeout: 245 seconds]
zipper has joined #racket
zipper has quit [Client Quit]
lockywolf_ has joined #racket
lockywolf has quit [Ping timeout: 248 seconds]
GoldRin has quit [Ping timeout: 244 seconds]
orivej has joined #racket
GoldRin has joined #racket
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 244 seconds]
GoldRin has quit [Ping timeout: 244 seconds]
iyzsong has joined #racket
GoldRin has joined #racket
orivej has quit [Ping timeout: 245 seconds]
lockywolf__ has quit [Read error: Connection reset by peer]
lockywolf__ has joined #racket
vraid has joined #racket
thawesWork has quit [Ping timeout: 246 seconds]
GoldRin has quit [Ping timeout: 245 seconds]
keep-learning[m] has joined #racket
bremner has quit [Quit: Coyote finally caught me]
bremner has joined #racket
jao has joined #racket
sz0 has joined #racket
thawesWork has joined #racket
ubLIX has joined #racket
ziyourenxiang has quit [Read error: Connection reset by peer]
ziyourenxiang has joined #racket
ziyourenxiang has quit [Remote host closed the connection]
ziyourenxiang has joined #racket
mSSM has quit [Ping timeout: 268 seconds]
manualcrank has joined #racket
dddddd has joined #racket
lockywolf_ has joined #racket
lockywolf__ has quit [Ping timeout: 245 seconds]
endobson has joined #racket
pera has joined #racket
jcowan has left #racket [#racket]
dustyweb has quit [Remote host closed the connection]
dustyweb has joined #racket
iyzsong has quit [Ping timeout: 250 seconds]
sword865 has quit [Quit: Connection closed for inactivity]
endformationage has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
mSSM has joined #racket
ubLIX has quit [Quit: ubLIX]
mSSM has quit [Ping timeout: 245 seconds]
lockywolf__ has joined #racket
lockywolf_ has quit [Ping timeout: 258 seconds]
englishm has joined #racket
orivej has joined #racket
endobson has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vraid has quit [Quit: Leaving]
efm has quit [Quit: Konversation terminated!]
ziyourenxiang has quit [Ping timeout: 268 seconds]
sz0 has quit [Quit: Connection closed for inactivity]
pie_ has joined #racket
FreeFull has joined #racket
pie_ has quit [Quit: pie_]
vraid has joined #racket
pie_ has joined #racket
ubLIX has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
vraid has quit [Disconnected by services]
vraid has joined #racket
efm has joined #racket
casaca has quit [Ping timeout: 272 seconds]
sauvin has quit [Read error: Connection reset by peer]
casaca has joined #racket
casaca has quit [Ping timeout: 245 seconds]
casaca has joined #racket
pie_ has joined #racket
orivej has quit [Ping timeout: 268 seconds]
pie_ has quit [Ping timeout: 272 seconds]
thawesWork has quit [Ping timeout: 245 seconds]
englishm has quit [Excess Flood]
englishm has joined #racket
pie_ has joined #racket
efm has quit [Quit: Konversation terminated!]
pie_ has quit [Ping timeout: 272 seconds]
pie_ has joined #racket
pie_ has quit [Ping timeout: 258 seconds]
casaca has quit [Ping timeout: 245 seconds]
tomaw has quit [Read error: Connection reset by peer]
davidl has joined #racket
casaca has joined #racket
tomaw has joined #racket
casaca has quit [Ping timeout: 246 seconds]
casaca has joined #racket
pie_ has joined #racket
orivej has joined #racket
thawes has quit [Quit: Konversation terminated!]
ahyatt has joined #racket
<ahyatt> Hi all - I'm trying to define some functions that use a global variable, but I'd rather not have a global variable. So I tried using a closure: (let ([...]) (define ...)) however that isn't allowed because the definitions are not in the top-level scope. Makes sense, but I'm kind of stuck trying to figure out if there's any way to do this, or do I just give up and use a global variable?
<evdubs> what's wrong with a global variable?
<ahyatt> I really only need it for 2 functions, so it seems inelegant to have it in scope for everything else as well.
<evdubs> but you don't want to pass it as an argument to those two functions?
<ahyatt> Probaby not - it really is global in nature and won't change between calls. I want to register a bunch of constant information as part of a setup, then look it up again later.
<evdubs> sounds like an appropriate usage of a global var to me :)
<evdubs> use*
<ahyatt> Yeah, maybe I should give in :/ Thanks for the response! If there's any way to define things in the top-level scope, though, I'm just curious at this point whether it can even be done.
<dzoe> ahyatt: (define-values (f1 f2) (let ((global #f)) (values (lambda () ...) (lambda () ...)))
<evdubs> i have a bunch of programs that have global variables defined as, usually, command line params or statistics-gathering-counters
<dzoe> But really a global should do fine.
<vraid> dzoe: i was just about to suggest the same. it's not pretty, but it works
<ahyatt> Cool cool, thanks all!
<vraid> although i would probably suggest returning a struct containing these variables instead
<dzoe> Writing this on a phone ;)
<ahyatt> Yeah, that totally makes sense
<vraid> (define (init configuration) (struct-container some things here))
<vraid> and call (init configuration) at start to get your functions
<ahyatt> Yeah, interesting possibility. Makes some sense, especially if there's more than just functions being returned.
<vraid> you can even define these variables in the scope of your main loop
pie_ has quit [Ping timeout: 268 seconds]
pie_ has joined #racket
ahyatt has quit [Ping timeout: 276 seconds]
ng0 has joined #racket
pie_ has quit [Remote host closed the connection]
pie_ has joined #racket
pie_ has quit [Ping timeout: 250 seconds]
pie_ has joined #racket
orivej has quit [Ping timeout: 248 seconds]
orivej has joined #racket
ziyourenxiang has joined #racket
ubLIX has quit [Quit: ubLIX]
pie_ has quit [Ping timeout: 250 seconds]