ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.23.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <watzon> Seems as though Crystal is missing `pack` and `unpack` methods?
<FromGitter> <aemadrid> it looks like you are right @watzon
<FromGitter> <watzon> Really I just need to be able to convert an `Int` to a `ByteArray`. So really, `1024` should be converted to `[4, '0']`
<FromGitter> <watzon> I think :/
<FromGitter> <watzon> Figured it out! I think this would do well in the stdlib ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5973f0a645fc670746b98362]
snsei has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
<FromGitter> <watzon> How can I make an array that holds elements of a specific class and it's children in such a way that I can access the methods on it's children that are specific to that child? As an example this (https://play.crystal-lang.org/#/r/2eju) won't run ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5974000d2723db8d5e399b5d]
<FromGitter> <watzon> I know I can use `.as(Child)`, but that's obviously not ideal
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 255 seconds]
<FromGitter> <renich> o/
<FromGitter> <renich> I am playing around with: http://exercism.io/exercises/crystal/hello-world/readme
<FromGitter> <renich> when I run crystal spec
<FromGitter> <renich> it says there are two pending tests... why is this?
<FromGitter> <fridgerator> has 2 pending tests
<FromGitter> <watzon> @renich have you changed the tests in the spec from `pending` to `it` like the instructions say?
<FromGitter> <renich> errr... no
<FromGitter> <renich> @watzon good point... hehe
<FromGitter> <watzon> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=59740e0c4bcd78af56d81f3b]
<FromGitter> <renich> Yep, did that. they all pass. Thanks a lot.
<FromGitter> <watzon> No problem haha
<FromGitter> <watzon> In other news, my very first crystal library is live! https://github.com/watzon/crystal-razer
<FromGitter> <watzon> Won't help anyone unless you have a razer keyboard, mouse, or trackpad, but it's pretty cool
<FromGitter> <fridgerator> 👍
snsei_ has quit [Remote host closed the connection]
<FromGitter> <renich> cool
snsei has joined #crystal-lang
<FromGitter> <renich> Created a crystal team there, if anyone here wants to redirect newbies there: http://exercism.io/teams/cr/streams/tracks/crystal
maxpowa has quit [Ping timeout: 258 seconds]
snsei_ has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
_whitelogger has joined #crystal-lang
pwned has joined #crystal-lang
maxpowa has joined #crystal-lang
<oprypin> watzon, regarding calling specific classes method, i think wrapping it in .responds_to? would work
<oprypin> i mean wrapping it in an 'if' checking that
donny-artzma has joined #crystal-lang
donny-artzma has quit [Client Quit]
pwned has quit [Ping timeout: 248 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
pwned has joined #crystal-lang
rohitpaulk has joined #crystal-lang
olbat[m] has joined #crystal-lang
Groogy has joined #crystal-lang
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Quit: Textual IRC Client: www.textualapp.com]
fenicks has joined #crystal-lang
nikkkk has joined #crystal-lang
cyberarm has quit [Ping timeout: 240 seconds]
cyberarm has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
nikkkk has quit [Quit: Textual IRC Client: www.textualapp.com]
pwned has quit [Ping timeout: 276 seconds]
pwned has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
fenicks has quit [Ping timeout: 240 seconds]
fenicks has joined #crystal-lang
<Majost> Has anyone successfully used this docopt shard? https://github.com/chenkovsky/docopt.cr
<Majost> The code in the readme doesn't seem to work with 0.23.1, and the example seems to be just the spec which is weird
<FromGitter> <konovod> @Majost `crystal spec` works in 0.23.0. What's an error in 0.23.1?
<Majost> ah,
<Majost> I am just starting out and was trying to compile that
<Majost> hah
pwned has quit [Ping timeout: 255 seconds]
snsei has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang