lexi-lambda changed the topic of #racket to: Racket v7.1 has been released: http://blog.racket-lang.org/2018/10/racket-v7-1.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
<harber> px helps
lavaflow_ has quit [Read error: Connection reset by peer]
Fare has quit [Ping timeout: 255 seconds]
lfish has quit [Ping timeout: 256 seconds]
lavaflow_ has joined #racket
<harber> i was able to get a result with --> #px"[[][[:digit:]]+[]] ([[:ascii:]]+$)" ... but... woof, that's awful-looking
selimcan has joined #racket
<lexi-lambda> harber: You could use \\d instead of [[:digit:]], and you could also use \\[ and \\] instead of [[] and []], but I don’t know if you’d find that better or not.
<harber> i tried using \\] and it barfed at me about unmatched brackets
<harber> maybe it's before i was using px?
<bremner> rudybot: (regexp-match #px"\\[[a-z]+" "[hello")
<rudybot> bremner: your sandbox is ready
<rudybot> bremner: ; Value: '("[hello")
<lexi-lambda> rudybot: eval (regexp-match #px"\\[\\d+\\] ([[:ascii:]]+)$" "[123] hi")
<rudybot> lexi-lambda: your sandbox is ready
<rudybot> lexi-lambda: ; Value: '("[123] hi" "hi")
<lexi-lambda> In my experience you basically just always want to use #px…
<harber> hah, that's fair. new to racket, fumbling my way through
<bremner> there's parser-tools/lex and parser-tools/lex-sre also
FreeFull has quit [Quit: Rebooting again..]
<selimcan> Hi! Is it a bug or a feature that when editing Scribble files in DrRacket, it fills (I guess that's the word. I press rightAlt-q) lines at 60 characters although the 'Maximum character width guide' is Preferences is set to 79 chars?
<selimcan> Maybe there is some other option to control that I don't see
FreeFull has joined #racket
efm has quit [Ping timeout: 240 seconds]
amz3 has quit [Ping timeout: 250 seconds]
efm has joined #racket
_whitelogger has joined #racket
ubLIX has quit [Quit: ubLIX]
efm has quit [Ping timeout: 250 seconds]
amz3 has joined #racket
harber has quit [Quit: Page closed]
widp_ has joined #racket
catonano_ has joined #racket
catonano has quit [Ping timeout: 250 seconds]
catonano_ is now known as catonano
pera has quit [Ping timeout: 245 seconds]
jao has quit [Ping timeout: 250 seconds]
pera has joined #racket
acarrico has quit [Ping timeout: 245 seconds]
acarrico has joined #racket
acarrico has quit [Ping timeout: 255 seconds]
pera has quit [Ping timeout: 240 seconds]
orivej has quit [Ping timeout: 252 seconds]
efm has joined #racket
efm has quit [Ping timeout: 245 seconds]
aeth has quit [Ping timeout: 245 seconds]
aeth has joined #racket
selimcan has quit [Remote host closed the connection]
ZombieChicken has quit [Ping timeout: 256 seconds]
ZombieChicken has joined #racket
FreeFull has quit []
widp_ has quit [Ping timeout: 240 seconds]
ym has quit [Ping timeout: 268 seconds]
ym has joined #racket
ym has quit [Ping timeout: 252 seconds]
pie__ has joined #racket
ym has joined #racket
pie___ has quit [Ping timeout: 255 seconds]
pera has joined #racket
endformationage has quit [Ping timeout: 245 seconds]
Fare has joined #racket
pera has quit [Ping timeout: 252 seconds]
selimcan has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
selimcan has quit [Ping timeout: 240 seconds]
Fare has quit [Ping timeout: 255 seconds]
winny has quit [Quit: internet is full of wankers]
widp_ has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 250 seconds]
ng0 has joined #racket
orivej has joined #racket
ubLIX has joined #racket
ng0 has quit [Quit: Alexa, when is the end of world?]
widp_ has quit [Ping timeout: 252 seconds]
dddddd has joined #racket
orivej has quit [Ping timeout: 252 seconds]
vraid has quit [Ping timeout: 245 seconds]
ubLIX has quit [Ping timeout: 250 seconds]
Diagon has joined #racket
selimcan has joined #racket
orivej has joined #racket
Diagon has quit [Client Quit]
dmiles has quit [Ping timeout: 245 seconds]
Diagon has joined #racket
dmiles has joined #racket
dddddd_ has joined #racket
dddddd has quit [Ping timeout: 252 seconds]
dddddd_ is now known as dddddd
vraid has joined #racket
Diagon has quit [Quit: Leaving]
lockywolf has joined #racket
Diagon has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
notzmv has quit [Ping timeout: 244 seconds]
ZombieChicken has quit [Ping timeout: 256 seconds]
juanfra has quit [Disconnected by services]
Guest56129 has joined #racket
ym555 has joined #racket
crsc has joined #racket
<crsc> hi
acarrico has joined #racket
YuGiOhJCJ has joined #racket
jao has joined #racket
Guest56129 has quit [Ping timeout: 252 seconds]
Diagon has quit [Quit: Leaving]
ym555 has quit [Quit: leaving...]
pierpal has joined #racket
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
ma_ has joined #racket
ma_ has quit [Client Quit]
ma_ has joined #racket
ma_ has quit [Client Quit]
spdegabrielle has joined #racket
ma_ has joined #racket
<spdegabrielle> Hi,
<spdegabrielle> Would anyone be interested in an informal Racket meetup in London?
<spdegabrielle> Any preference for date/time?
<spdegabrielle> For a location I’m thinking about ‘The Microsoft Reactor London - 70 Wilson St, London EC2A 2DB’ as it appears to be free and relatively central.
<spdegabrielle> Kind regards,
<spdegabrielle> Stephen
<spdegabrielle> spdegabrielle@gmail.com
ma_ has quit [Client Quit]
ma_ has joined #racket
ma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
q9929t has joined #racket
q9929t has quit [Quit: q9929t]
juanfra has joined #racket
Fare has joined #racket
<dustyweb> hey spdegabrielle
<dustyweb> not in london but always exciting to hear more people working on organizing such things
endformationage has joined #racket
ng0 has joined #racket
pera has joined #racket
notzmv has joined #racket
lockywolf has quit [Ping timeout: 245 seconds]
selimcan has quit [Ping timeout: 246 seconds]
aeth has quit [Ping timeout: 252 seconds]
aeth has joined #racket
vraid has quit [Quit: Leaving]
Fare has quit [Ping timeout: 245 seconds]
widp_ has joined #racket
efm has joined #racket
orivej has quit [Ping timeout: 240 seconds]
pierpal has quit [Quit: Poof]
pierpal has joined #racket
orivej has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
orivej has quit [Ping timeout: 245 seconds]
efm has quit [Ping timeout: 240 seconds]
efm has joined #racket
efm has quit [Remote host closed the connection]
efm has joined #racket
spdegabrielle has quit [Quit: Connection closed for inactivity]
dan_f has joined #racket
selimcan has joined #racket
pera has quit [Ping timeout: 245 seconds]
YuGiOhJCJ has joined #racket
pera has joined #racket
pierpal has quit [Quit: Poof]
pierpal has joined #racket
<selimcan> Looks like as if someone is trolling the user mailing list or misinterpreted the name of this language
FreeFull has joined #racket
ubLIX has joined #racket
jao has quit [Ping timeout: 245 seconds]
pera has quit [Ping timeout: 245 seconds]
acarrico has quit [Ping timeout: 268 seconds]
zmt01 has joined #racket
zmt00 has quit [Ping timeout: 240 seconds]
orivej has joined #racket
pera has joined #racket
selimcan has quit [Ping timeout: 246 seconds]
selimcan has joined #racket
ng0 has quit [Remote host closed the connection]
selimcan has quit [Remote host closed the connection]
ng0 has joined #racket
aeth has quit [Ping timeout: 246 seconds]
aeth has joined #racket
aeth has quit [Ping timeout: 245 seconds]
aeth has joined #racket
pierpal has quit [Ping timeout: 252 seconds]
aeth has quit [Ping timeout: 240 seconds]
aeth has joined #racket
ZombieChicken has joined #racket
efm has quit [Ping timeout: 268 seconds]
efm has joined #racket
ng0 has quit [Remote host closed the connection]
ng0 has joined #racket
efm has quit [Read error: Connection reset by peer]
efm has joined #racket
amz3 has quit [Quit: WeeChat 2.2]
Fare has joined #racket
aeth has quit [Ping timeout: 244 seconds]
aeth has joined #racket
acarrico has joined #racket
ym555 has joined #racket
Fare has quit [Ping timeout: 246 seconds]
efm has quit [Read error: Connection reset by peer]
vraid has joined #racket
<jboy> It feels weird to have this helper function in my code: (define (true? x) (not (false? x)))
<jboy> What would be the idiomatic way to check for trueness?
<rain1> in scheme you usually check for #t rather than "trueness"
<rain1> oh no thats wrong i got it negated
<rain1> what you have is correct
acarrico has quit [Ping timeout: 255 seconds]
<lexi-lambda> jboy: What rain1 said is right, you usually just treat #f as false and everything else as true, so there isn’t usually much reason to explicitly convert non-#f values to #t. But if you have to for some reason, the idiomatic pattern is to write `(and x #t)`. (Personally, I’m not sure this is actually a great idiom, but hey, I’m just the messenger.)
<jboy> Thanks lexi-lambda and rain1. I want to filter all occurrences of #f out of a list, and with my helper function I can just do (filter true? lst)
<lexi-lambda> jboy: You can also just do (filter identity lst) since `filter` treats everything that isn’t `#f` as true (as is idiomatic).
<lexi-lambda> Or (filter values lst) if you don’t want to import racket/function. `values` happens to be the identity function when given one argument.
pierpal has joined #racket
<jboy> Ah, nice. I was just wondering wither (filter-not false? lst) would be more idiomatic, but you saved me from insanity.
<lexi-lambda> (filter values lst) is a pretty common idiom.
pierpal has quit [Ping timeout: 255 seconds]
jao has joined #racket
orivej has quit [Ping timeout: 245 seconds]
dan_f has quit [Quit: dan_f]
ubLIX has quit [Quit: ubLIX]
jao has quit [Ping timeout: 245 seconds]