samth changed the topic of #racket to: Racket v7.7 has been released: https://blog.racket-lang.org/2020/05/racket-v7-7.html -- Racket -- https://racket-lang.org -- https://pkgs.racket-lang.org -- Paste at http://pasterack.org
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #racket
notzmv has quit [Ping timeout: 256 seconds]
srandon111 has quit [Quit: leaving]
peddie has joined #racket
Fare has quit [Ping timeout: 240 seconds]
orivej has joined #racket
orivej_ has quit [Ping timeout: 264 seconds]
catonano has quit [Read error: Connection reset by peer]
catonano_ has joined #racket
catonano_ is now known as catonano
orivej has quit [Ping timeout: 258 seconds]
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 246 seconds]
badkins has joined #racket
vraid has quit [Ping timeout: 240 seconds]
<m455> does anyone know how ot pattern match with definitions?
<m455> let me get an example lol
<m455> i've been busting my brains to try and get this working with quasi quotes and all other ridiculous stuff haha.
<m455> i can write predicates for all the definitions, but in my original code i have a lot of definitions
<m455> using a cond also works but that kind of defeats the purpose of the (match ...) haha
badkins has quit [Remote host closed the connection]
notzmv has joined #racket
<m455> that was my old definition and my new one. still pretty messy lol
badkins has joined #racket
badkins has quit [Ping timeout: 264 seconds]
dataangel has quit [Read error: Connection reset by peer]
zv has quit [Ping timeout: 258 seconds]
Fare has joined #racket
badkins has joined #racket
nebunez has joined #racket
badkins has quit [Ping timeout: 258 seconds]
YuGiOhJCJ has joined #racket
Fare has quit [Ping timeout: 258 seconds]
aaaaaa has joined #racket
lockywolf has joined #racket
lockywolf has quit [Client Quit]
narimiran has joined #racket
_whitelogger has joined #racket
orivej has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
evdubs_ has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej has joined #racket
evdubs has quit [Ping timeout: 260 seconds]
evdubs_ is now known as evdubs
orivej has quit [Ping timeout: 260 seconds]
orivej has joined #racket
nebunez has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
sword865 has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
badkins has joined #racket
orivej has joined #racket
badkins has quit [Ping timeout: 256 seconds]
YuGiOhJCJ has quit [Quit: YuGiOhJCJ]
orivej_ has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
ephemera_ has quit [Quit: No Ping reply in 180 seconds.]
ephemera_ has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
Sgeo has quit [Read error: Connection reset by peer]
libertyprime has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #racket
sauvin_ has joined #racket
bocaneri has quit [Ping timeout: 264 seconds]
sauvin_ is now known as Sauvin
ohama has quit [Ping timeout: 240 seconds]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
ohama has joined #racket
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
catonano has quit [Remote host closed the connection]
catonano has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 272 seconds]
sagax has quit [Ping timeout: 272 seconds]
orivej_ has quit [Ping timeout: 272 seconds]
orivej has joined #racket
sagax has joined #racket
notzmv has joined #racket
cantstanya has quit [Write error: Broken pipe]
cantstanya has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 246 seconds]
libertyprime has quit [Remote host closed the connection]
orivej has quit [Ping timeout: 246 seconds]
orivej has joined #racket
aaaaaa has quit [Quit: leaving]
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
sword865 has quit [Quit: Connection closed for inactivity]
<samth> m455: you probably want `match-define`
badkins has joined #racket
<m455> samth: ouuu thanks i'll look into that procedure. :D
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
<m455> hmm it doesn't look like that would work in my context, because i need to check for multiple patterns (i'm using it to practice parsing command line arguments)
<samth> I don't understand how it would work to only sometimes define things
<m455> i'm testing against multiple patterns, you can see my old and new commit here: https://github.com/m455/rodo/commit/40e8dc46b97cf9201#diff-4c8facad02394472d2e28d3476de8f73L262 in the first example i hardcoded the strings in the patterns, then in the second example i tried using definitions, but it got ugly haha
<m455> basically like fennel can do: https://p.hagelb.org/match.fnl.html
badkins has quit [Remote host closed the connection]
<samth> that fennel code is equivalent to this racket code, i think: http://pasterack.org/pastes/97732
<m455> samth: ahhh thanks! i'll give that a good!! i really appreciate it. been struggling with this for days lol
<m455> didn't know about the == in matches!
<samth> I was just confused about what definitions you were looking for
<m455> haha yeah i had no clue how to word it/terminology sorry!
<m455> i figured pasting the solution someone had in another lang would help!
badkins has joined #racket
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
badkins has quit [Ping timeout: 240 seconds]
<m455> samth: yesss the == is exactly what i was looking for!!
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
badkins has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
nikita` has joined #racket
orivej_ has quit [Ping timeout: 240 seconds]
orivej has joined #racket
ski has quit [*.net *.split]
mbrndtgn has quit [*.net *.split]
dzoe has quit [*.net *.split]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
ski has joined #racket
mbrndtgn has joined #racket
dzoe has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
Sgeo has joined #racket
nebunez has joined #racket
orivej has quit [Ping timeout: 240 seconds]
orivej has joined #racket
TCZ has joined #racket
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
Lowl3v3l has joined #racket
orivej_ has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 265 seconds]
orivej has quit [Ping timeout: 256 seconds]
orivej has joined #racket
orivej has quit [Quit: No Ping reply in 180 seconds.]
orivej has joined #racket
badkins has joined #racket
Lowl3v3l has quit [Remote host closed the connection]
Lowl3v3l has joined #racket
TCZ has quit [Quit: Leaving]
orivej has quit [Ping timeout: 256 seconds]
orivej_ has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 240 seconds]
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #racket
YuGiOhJCJ has joined #racket
badkins has joined #racket
badkins has quit [Ping timeout: 258 seconds]
badkins has joined #racket
zv has joined #racket
orivej has quit [Ping timeout: 264 seconds]
orivej_ has joined #racket
countvajhula has joined #racket
mononote has quit [Read error: Connection reset by peer]
mononote has joined #racket
orivej_ has quit [Ping timeout: 256 seconds]
orivej has joined #racket
ArneBab has quit [Ping timeout: 256 seconds]
orivej_ has joined #racket
orivej has quit [Ping timeout: 272 seconds]
Sauvin has quit [Ping timeout: 256 seconds]
bocaneri has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
badkins has quit [Ping timeout: 256 seconds]
badkins has joined #racket
orivej_ has quit [Ping timeout: 260 seconds]
orivej has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
notzmv has quit [Ping timeout: 240 seconds]
countvajhula has quit [Ping timeout: 260 seconds]
YuGiOhJCJ has quit [Ping timeout: 240 seconds]
narimiran has quit [Ping timeout: 246 seconds]
nikita` has quit [Quit: leaving]
TCZ has joined #racket
badkins has quit [Remote host closed the connection]
badkins has joined #racket
TCZ has quit [Quit: Leaving]
badkins has quit [Ping timeout: 272 seconds]
acarrico has quit [Ping timeout: 256 seconds]
notzmv has joined #racket
badkins has joined #racket
nebunez has quit [*.net *.split]
mbrndtgn has quit [*.net *.split]
ski has quit [*.net *.split]
dzoe has quit [*.net *.split]
ski has joined #racket
mbrndtgn has joined #racket
nebunez has joined #racket
dzoe has joined #racket
countvajhula has joined #racket
Codaraxis has joined #racket