bungoman has quit [Read error: Connection reset by peer]
bungoman has joined #crystal-lang
ruby_ has joined #crystal-lang
onionhammer has joined #crystal-lang
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
ruby_ has quit [Ping timeout: 252 seconds]
ruby_ has joined #crystal-lang
xmgx has joined #crystal-lang
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
ruby_ has quit [Ping timeout: 265 seconds]
mark_66 has quit [Quit: Leaving.]
tilpner has quit [Quit: :wq]
tilpner has joined #crystal-lang
<RX14>
BlaXpirit, there's already a bit method on int
<RX14>
i don't see the point of bit?5 instead of bit(5) == 1 though
<RX14>
or .zero? instead of == 0
onethirtyfive has joined #crystal-lang
xmgx has quit [Remote host closed the connection]
onethirtyfive has quit [Ping timeout: 252 seconds]
<Papierkorb>
RX14: It's shorter and more readable in my case
<RX14>
== 0 is actually shorter...
<RX14>
foo == 0
<RX14>
foo.zero?
<Yxhuvud>
I suppose it make rubyists feel like home
<RX14>
i think it's ugly
<Papierkorb>
yet less readable when used in conjunction, which I have a lot of in my current project
<RX14>
in conjunction with what?
<Papierkorb>
bit?
ruby_ has joined #crystal-lang
ruby_ has quit [Remote host closed the connection]
ruby_ has joined #crystal-lang
ruby_ has quit [Client Quit]
dhk has joined #crystal-lang
<FromGitter>
<drosehn> FWIW, I do like .zero?, because it's clear and it's safer (from programmer mistakes) than == 0. The programmer mistake being '= 0' when you meant '== 0'.
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
globalkeith has quit [Client Quit]
<BlaXpirit>
let's add the methods for each number because it's safer
globalkeith has joined #crystal-lang
soveran has quit [Remote host closed the connection]
<FromGitter>
<drosehn> Ho Ho Ho.
globalkeith has quit [Client Quit]
globalkeith has joined #crystal-lang
<FromGitter>
<sdogruyol> i'like to have `forty_two?`
<BlaXpirit>
could be done thru method_missing
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<RX14>
rkeene, not that i'm aware of
Philpax has quit [Ping timeout: 250 seconds]
bungoman has quit [Ping timeout: 250 seconds]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
mgarciaisaia1 has joined #crystal-lang
qard has joined #crystal-lang
soveran has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia1 has quit [Ping timeout: 240 seconds]
<rkeene>
:-(
soveran has quit [Ping timeout: 264 seconds]
<FromGitter>
<txdv> o nice
mgarciaisaia has left #crystal-lang [#crystal-lang]
<rkeene>
It doesn't have to be quite as fancy, something really basic about creating widgets and attaching stateful code to them would be good enough
soveran has joined #crystal-lang
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Ping timeout: 264 seconds]
Dreamer3 has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
Dreamer3 has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
<rkeene>
I like this reply a lot better than the #go-nuts reply where I spent an hour explaining that I really do want to do it and they argue over misunderstandings for an hour.