<msiism>
Hm… interesting. But isn't Racket itself able to report type errors when calling its built-in functions?
<msiism>
Yeah, I think it is.
<samth>
msiism: you can check whether a value is of a particular kind
<msiism>
Oh, right.
<msiism>
I see.
<samth>
which is what functions like + do
<msiism>
Yeah, that should also work for me, actually.
<msiism>
Oh, I see, it hands out the literal value on `raise-argument-error`, not the type, which makes sense.
<msiism>
But `describe` is also interesting. Thanks for the pointer.
Avichi has joined #racket
<msiism>
Now, I'm a bit confused as to whether (member 'c '('b 'c 'd)) evalutaes to false.
<msiism>
There must be something special about lists of symbols.
<samth>
no, the problem is you have two many ' marks
<samth>
you probably want `(member 'c '(b c d))`
<msiism>
Oh…
<msiism>
Okay, interesting. Need to read up on '() syntax. I mean, if I use (list), it works as I expected.
<samth>
yes
<samth>
I mostly recommend staying away from ' except for symbols until you're more comfortable with Racket
<msiism>
Okay, probably a good idea. I've already learned to stay away from eq?, except for symbols.
kimjetwav has joined #racket
<winny>
I have a guilty pleasure, I just use equal? Everywhere
<msiism>
I use equal? everywhere, except for symbols.
<msiism>
I'm writing a personal acocunting application with an S-expresisons-based data base, so some speedy equality comparison is nice to have.
<msiism>
s/acocu/accou/
littlebobeep has quit [Ping timeout: 240 seconds]
<winny>
sounds like a fun project =) sounds like a nice use-case of eq? . there are a few cases where symbols won't eq? each other, but if you're reading them in (and are not generating them programmatically from strings or other data) you should be good 2 go. i think
littlebobeep has joined #racket
<msiism>
Hm… Now I'm at a bit fo a loss here. My program just went from being able to list transactions without a problem to falling into an endless loop when trying to do that and back to being able to list without a problem.
<msiism>
I did not change the code inbetween.
<winny>
ooof, do you have a logger in your program? Could add some debug logs
<msiism>
I don't, unfortunately. I also don't know about logging in Racket yet.
<msiism>
I can at least reprodude the behavior. Seems to have something to do with regex matching.
littlebobeep has quit [Ping timeout: 240 seconds]
littlebobeep has joined #racket
<winny>
if anything else can use displayln/printf as a crud logger... unfortunately all the howto's on using racket logging may have a bit of upfront learning (like how to write a log receiver or how to intercept logs or whatever)
<msiism>
Yeah, I've done some `display` debugging to narrow things down a little. But it's still a bit mysterious to me.
littlebobeep has quit [Remote host closed the connection]
littlebobeep has joined #racket
<msiism>
There's some subtle error on one of the output functions, it seems. I'll have to investigate that more deeply.
<msiism>
But, yeah, it's a nice project. It's mainly for learning Racket, especially for how to use S-expressions as a data base and making POSIX-compatible command-line interfaces.
mon_aaraj has joined #racket
gproto23 has quit [Remote host closed the connection]
FreeFull has joined #racket
mon_aaraj has quit [Remote host closed the connection]
mon_aaraj has joined #racket
mon_aaraj has quit [Ping timeout: 256 seconds]
Avichi has quit [Quit: Client closed]
Avichi has joined #racket
libertyprime has joined #racket
ur5us has joined #racket
msiismistic has joined #racket
msiism has quit [Killed (lead.libera.chat (Nickname regained by services))]
msiismistic is now known as msiism
jakzale_ has joined #racket
matta_ has joined #racket
djelic_ has joined #racket
oter_ has joined #racket
sm2n_ has joined #racket
raghavgururajan_ has joined #racket
casaca_ has joined #racket
ecraven- has joined #racket
sunarch_ has joined #racket
cookie has joined #racket
jfred-linode_ has joined #racket
em-bee has joined #racket
matta has quit [Ping timeout: 250 seconds]
jakzale has quit [Ping timeout: 250 seconds]
ecraven has quit [Ping timeout: 250 seconds]
sm2n has quit [Ping timeout: 250 seconds]
Boarders_ has quit [Ping timeout: 250 seconds]
sunarch has quit [Ping timeout: 250 seconds]
conjunctive has quit [Ping timeout: 250 seconds]
casaca has quit [Ping timeout: 250 seconds]
eMBee has quit [Ping timeout: 250 seconds]
nullsh has quit [Ping timeout: 250 seconds]
bremner has quit [Ping timeout: 250 seconds]
djelic has quit [Ping timeout: 250 seconds]
raghavgururajan has quit [Ping timeout: 250 seconds]
oter has quit [Ping timeout: 250 seconds]
ratzkewatzke has quit [Ping timeout: 250 seconds]
jfred-linode has quit [Ping timeout: 250 seconds]
ckie has quit [Ping timeout: 250 seconds]
cwebber has quit [Ping timeout: 250 seconds]
ttree has quit [Ping timeout: 250 seconds]
jakzale_ is now known as jakzale
oter_ is now known as oter
djelic_ is now known as djelic
casaca_ is now known as casaca
raghavgururajan_ is now known as raghavgururajan
matta_ is now known as matta
sm2n_ is now known as sm2n
sunarch_ is now known as sunarch
littlebobeep has quit [Remote host closed the connection]