<FromGitter>
<mwlang> sure. that's easy. Write code for *only* one type and no others. :snark remark: :-D
<FromGitter>
<watzon> Hmm the `T.is_a?(Union)` part doesn't work for some reason
<FromGitter>
<Blacksmoke16> where you putting it?
duane has quit [Ping timeout: 272 seconds]
<FromGitter>
<watzon> Ahh
<FromGitter>
<watzon> `T.union?`
<FromGitter>
<watzon> That's what I needed
<FromGitter>
<mwlang> (takes notes...)
<FromGitter>
<Blacksmoke16> right because you're dealing with literals in macro land
<FromGitter>
<Blacksmoke16> makes sense
<FromGitter>
<watzon> Yuppers
<FromGitter>
<elorest> Did any of you guys from Argentina watch the eclipse?
<FromGitter>
<elorest> As a vim user I it's too painful for me to try searching the channel for "eclipse"
<FromGitter>
<Blacksmoke16> `eclipse -ide`
<FromGitter>
<Blacksmoke16> tada :P
<FromGitter>
<elorest> @Blacksmoke16 does starting eclipse with the `-ide` flag change anything?
<FromGitter>
<Blacksmoke16> oh, i thought you meant search google
<FromGitter>
<Blacksmoke16> which would search for `eclipse` but remove any results that are related to the ide
<FromGitter>
<elorest> Got it. I should have noticed that. My head was still stuck in the terminal lol.
<FromGitter>
<elorest> I'm sure I could find some great stuff on youtube about the 2019 eclipse but since it went right though Argentina I figured some friends here may have seen it.
<FromGitter>
<yxhuvud> `send` can call private methods. But why anyone would code like that, no.
return0e has joined #crystal-lang
<FromGitter>
<watzon> Ahh yeah that makes sense I gues
jhass|off has joined #crystal-lang
jhass has quit [Ping timeout: 264 seconds]
asterite has quit [Ping timeout: 252 seconds]
jhass|off is now known as jhass
asterite has joined #crystal-lang
<FromGitter>
<watzon> I wish stack overflow messages could be a little more helpful
<FromGitter>
<girng> one problem i faced in programming (want to post to see if anyone else has gone through this phase)
<FromGitter>
<girng> when trying to implement something, you think of doing it in code first. but you are really supposed to think on how to implement its logic first and what it's supposed to do, before coding it
<FromGitter>
<girng> anyone else done that before? kinda makes it hard sometimes doesn't it?
<FromGitter>
<girng> when i say "doing it in code first" i mean, "can this programming language support this kind of idea / functionality?"
<FromGitter>
<girng> but in reality, most programming languages do... so it's the matter of the thinking about the idea and its logic first. once you got that down, code the damn thing
<FromGitter>
<watzon> I'm pretty sure everyone does that at some point
<FromGitter>
<girng> i don't think writing out logic (if blocks, case/when, class, etc) is the hard part, it's the concept and logic behind it. that's the hard part.
jhass has quit [Ping timeout: 248 seconds]
asterite has quit [Ping timeout: 248 seconds]
snsei__ has quit [Remote host closed the connection]
<FromGitter>
<spTorin> Trying to use the options parser. If you specify a flag with an option, such as in the documentation for the parser: `parser.on (" - t NAME "," --to = NAME "," Specifies the name to salute ") {| name | destination = name} `. And if you use this flag without the option - just `-t`, then the exception is `Unhandled exception: Missing option: -t (OptionParser :: MissingOption) ......`. Where can I catch an
<FromGitter>
... exception and how to do it correctly? You just need to display that the `-t` flag has no argument.
snsei__ has joined #crystal-lang
sorcus has joined #crystal-lang
<FromGitter>
<j8r> How can I check if a char is a valid UTF8 one?
<FromGitter>
<spTorin> @j8r ascii?
<FromGitter>
<spTorin> 'a'.ascii?
<FromGitter>
<spTorin> @j8r If you have char - it already valid. Invalid as UTF8 may be a sequence of bytes.
snsei__ has quit [Ping timeout: 252 seconds]
<FromGitter>
<j8r> To necessarily, I do `1.unsafe_chr` for instance
jhass has joined #crystal-lang
asterite has joined #crystal-lang
snsei__ has joined #crystal-lang
snsei__ has quit [Ping timeout: 276 seconds]
davic has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> it prob would but only has the 1 row
<FromGitter>
<Blacksmoke16> er nvm
<FromGitter>
<watzon> I just don't know enough about `pretty_print` to get it working correctly
RyanMcCoskrie has joined #crystal-lang
<FromGitter>
<girng> @rkeene really? i live near tacoma
gangstacat has quit [Quit: Δis!]
<FromGitter>
<girng> @rkeene good luck! i have crystal on my resume
<FromGitter>
<watzon> Haha I use to live up there
<FromGitter>
<watzon> Not around Tacoma really, but in a small town called Naselle
<FromGitter>
<girng> oh nice, near the ocean ;p
<FromGitter>
<watzon> Yup!
<FromGitter>
<watzon> I miss it, but my allergies don't
<FromGitter>
<girng> i was thinking abou t moving out and starting a new life with the money i saved from working at costco. but i gave all that money to my mom already, i think im just stuck here
<FromGitter>
<girng> anyways, cost of living over here is pretty insane. a 1000sqft house is $250,000
<FromGitter>
<girng> pacific northwest is cancer to live in unless you live with a roomate, leech off parents, or work 50 hours a week
<FromGitter>
<watzon> Yeah, cost of living in the US period is pretty stupid
<FromGitter>
<watzon> My wife and I are going to move to Guatemala before the end of the year
<FromGitter>
<girng> which will ruin a person's morale and diminish any kind of hobbies they want to do. spend time with kids, etc.
<FromGitter>
<girng> @watzon nice
<FromGitter>
<girng> @watzon east coast of wa state is really nice too. but i heard it's really hot lol. bet it's pretty hot in Guatemala too
<FromGitter>
<watzon> Actually Guatemala is pretty much perfect all year 'round
RyanMcCoskrie has quit [Remote host closed the connection]
<FromGitter>
<wontruefree> use to live east of seattle I miss it
<FromGitter>
<wontruefree> but there is no way I would want to spend that kind of money again
sorcus has quit [Ping timeout: 252 seconds]
gangstacat has joined #crystal-lang
<FromGitter>
<girng> nice, i didn't know that many people in this crystal community used to live in wa state lol
<FromGitter>
<mwlang> @watzon Looks like Crystal takes similar approach as Ruby and has a PrettyPrint class. Looks like you can control width of output with this: https://crystal-lang.org/api/0.21.1/PrettyPrint.html
<FromGitter>
<watzon> I'm aware of that, and that's what I'm doing. I just don't know how to make it return the output I want.
<FromGitter>
<asterite> I think you should just `text("\n")` if you always want a newline
<FromGitter>
<watzon> I feel like I've tried that and it had a really ugly output, but I'll try again
absolutejam1 has quit [Ping timeout: 272 seconds]
<FromGitter>
<asterite> (disclaimer: I know nothing about pp)
<FromGitter>
<watzon> Yeah I have no idea
<FromGitter>
<watzon> I've tried everything I can think of