<msiism>
Okay, that totally doesn't solve the problem, actually.
s-liao has joined #racket
s-liao has quit [Client Quit]
s-liao has joined #racket
TCZ has quit [Quit: Leaving]
s-liao has quit [Ping timeout: 256 seconds]
countvaj` has joined #racket
countvaj` has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 240 seconds]
monkey_ has joined #racket
s-liao has joined #racket
s-liao has quit [Client Quit]
<jA_cOp>
msiism: turns out, checking if a string is a valid number is largely the same operation as converting it to a number. That's why there's usually no special "is-a-number" function in language standard libraries. Sometimes there's a good reason to have one; like if the string->number conversion function throws an exception on error, which can be relatively performance heavy in some languages
mon_aaraj has quit [Ping timeout: 256 seconds]
<jA_cOp>
apparently string->number returns #f when given non-number input, so that doesn't seem to be an issue for Racket
mon_aaraj has joined #racket
<msiism>
I see. Now, I wonder if I could do with running string->number only once.
<msiism>
Okay, using a variable to store the conversion result help with that.
badkins has joined #racket
tonyg3 has joined #racket
<jA_cOp>
mhm. Just use `define` and then compare with `#f` using `if`, `when`, `unless`, `match` etc.
<msiism>
Right, that's what I'm doing now.
tonyg has quit [Ping timeout: 252 seconds]
tonyg3 is now known as tonyg
badkins has quit [Ping timeout: 240 seconds]
tonyg has quit [Quit: Ping timeout (120 seconds)]
tonyg has joined #racket
countvaj` has joined #racket
countvaj` has quit [Ping timeout: 260 seconds]
mon_aaraj has quit [Ping timeout: 272 seconds]
mon_aaraj has joined #racket
countvaj` has joined #racket
badkins has joined #racket
countvaj` has quit [Ping timeout: 260 seconds]
badkins has quit [Ping timeout: 240 seconds]
notzmv has joined #racket
capfredf has joined #racket
capfredf has quit [Ping timeout: 260 seconds]
xgqt has quit [Read error: Connection reset by peer]
xgqt has joined #racket
kengruven has joined #racket
<msiism>
So, now I'm trying to read an entire file and then create maybe a list of strings from its lines.
<msiism>
Unfortunately, I don't seem to be getting much out of that file:
wwalker has quit [Remote host closed the connection]
monkey_ has quit [Ping timeout: 260 seconds]
countvaj` has joined #racket
capfredf has joined #racket
countvaj` has quit [Ping timeout: 240 seconds]
capfredf has quit [Ping timeout: 272 seconds]
badkins has quit [Remote host closed the connection]
countvaj` has joined #racket
badkins has joined #racket
tarod16 has joined #racket
<tarod16>
Hi :D
<tarod16>
I'm new at this
<tarod16>
Well, I'm a noob in lisp like languages or dialects
badkins has quit [Remote host closed the connection]
badkins has joined #racket
<tarod16>
I'm excited with Racket, seems like a simple and powerful language for almost whatever
badkins has quit [Remote host closed the connection]
tarod16 has quit [Remote host closed the connection]
tarod16 has joined #racket
tarod16 has quit [Client Quit]
tarod16 has joined #racket
tarod16 has quit [Client Quit]
tarod16 has joined #racket
tarod16 has quit [Client Quit]
tarod16 has joined #racket
monkey_ has joined #racket
tarod16 has quit [Read error: Connection reset by peer]
jao has joined #racket
tarod16 has joined #racket
<dzoe>
msiism: look at port->lines
<dzoe>
msiism: read is for sexprs, not lines
<msiism>
dzoe: Will do. Thanks.
<msiism>
tarod16: What else have you programmed in so far?
simendsjo has joined #racket
<tarod16>
msiism: C, C++, C#, Python, JavaScript and a little of Rust
<tarod16>
I touch other few languages, but not so deep
<msiism>
I see.
<msiism>
I don't know any of those. I don't really know any half-way sane programming language, actually. :)
<tarod16>
Hahaha
<tarod16>
I hope to not become crazy with lisp haha
<msiism>
I'm actually learning Racket to change what I just said above.
ur5us has joined #racket
<tarod16>
Oh, cool, I'm learning Racket because always I think that Lisp (dialects) is interesting to get a new point of view of programming (or fp in general)
<tarod16>
I want to use it in a toy project that I have in mind (a web server that responses with a image of a parchis game board with a particular state)
simendsjo has quit [Ping timeout: 256 seconds]
<tarod16>
Yep, a random project hahaha
<msiism>
I mainly need to do string mangling and database stuff, and maybe a few nice GUIs.
<tarod16>
Cool
ur5us has quit [Ping timeout: 240 seconds]
countvaj` has quit [Ping timeout: 260 seconds]
capfredf has joined #racket
monkey_ has quit [Remote host closed the connection]
ur5us has joined #racket
capfredf has quit [Read error: Connection reset by peer]
capfredf has joined #racket
capfredf has quit [Ping timeout: 256 seconds]
AkechiShiro has joined #racket
rgherdt_ has joined #racket
rgherdt has quit [Ping timeout: 256 seconds]
msiism has quit [Quit: Konversation vaporized.]
rgherdt_ has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
capfredf has joined #racket
capfredf has quit [Ping timeout: 240 seconds]
lowak has joined #racket
<jA_cOp>
tarod16: Apart from the first-class support for functional programming, Racket might do pretty well with that project, with the out-of-the-box support for CSP when doing concurrent programming! It's something that you usually only get with other languages when using third-party languages and specially tagged functions (like Rust/Python "async")