<FromGitter>
<Blacksmoke16> so heres an interesting problem, i have a class `Some::Namespace::Foo`, that im using as a class and namespace. I'm trying to create `abstract class Some::Namespace::Foo::Bar` and have `Some::Namespace::Foo` inherit from it
<FromGitter>
<Blacksmoke16> but theres a catch-22 here in that you can define `Bar` before `Foo` as it'll treat it as a module, but you can define `Foo` before `Bar` or it won't know about the superclass its trying to inherit from
<FromGitter>
<Blacksmoke16> can't define*
<FromGitter>
<Blacksmoke16> i also can't define `Foo` before hand or you run into a superclass mismatch
<FromGitter>
<Blacksmoke16> prob have to go with a module in this case i guess
aquijoule__ has joined #crystal-lang
aquijoule_ has quit [Ping timeout: 246 seconds]
chachasmooth has quit [Ping timeout: 258 seconds]
chachasmooth has joined #crystal-lang
lchapoguzman has joined #crystal-lang
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 252 seconds]
DTZUZU has quit [Read error: Connection reset by peer]
DTZUZU has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [*.net *.split]
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 268 seconds]
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Ping timeout: 268 seconds]
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 265 seconds]
DTZUZU_ has joined #crystal-lang
<FromGitter>
<erdnaxeli:cervoi.se> indeed I don't think there is a solution
<FromGitter>
<erdnaxeli:cervoi.se> but I don't see neither a case for that :p
DTZUZU has quit [Ping timeout: 260 seconds]
hendursaga has quit [Ping timeout: 240 seconds]
hendursaga has joined #crystal-lang
Olbat has quit [Quit: Bye ...]
oz has quit [*.net *.split]
oz has joined #crystal-lang
snapcase has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
snapcase has joined #crystal-lang
daemonwrangler has joined #crystal-lang
PixeLInc has quit [*.net *.split]
justinmcp has quit [*.net *.split]
duane has quit [*.net *.split]
Nekka has quit [*.net *.split]
Xeago has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
straight-shoota has quit [*.net *.split]
DeBot has quit [*.net *.split]
Liothen has quit [*.net *.split]
deavmi has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
asterite has quit [*.net *.split]
markmarkmark has quit [*.net *.split]
xybre-libera has quit [*.net *.split]
bougyman has quit [*.net *.split]
hendursaga has quit [*.net *.split]
Flipez has quit [*.net *.split]
V[llf] has quit [*.net *.split]
ua has quit [*.net *.split]
DTZUZU_ has quit [*.net *.split]
Vexatos has quit [*.net *.split]
Stephie has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
hendursaga has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
yxhuvud has joined #crystal-lang
Vexatos has joined #crystal-lang
Liothen has joined #crystal-lang
asterite has joined #crystal-lang
V[llf] has joined #crystal-lang
Flipez has joined #crystal-lang
ua has joined #crystal-lang
straight-shoota has joined #crystal-lang
bougyman has joined #crystal-lang
HumanG33k has joined #crystal-lang
xybre-libera has joined #crystal-lang
Stephie has joined #crystal-lang
deavmi has joined #crystal-lang
DeBot has joined #crystal-lang
markmarkmark has joined #crystal-lang
PixeLInc has joined #crystal-lang
dostoyevsky has joined #crystal-lang
justinmcp has joined #crystal-lang
Nekka has joined #crystal-lang
duane has joined #crystal-lang
Xeago has joined #crystal-lang
lchapoguzman has quit [*.net *.split]
chachasmooth has quit [*.net *.split]
astronavt has quit [*.net *.split]
sagax has quit [*.net *.split]
sorcus has quit [*.net *.split]
lchapoguzman has joined #crystal-lang
chachasmooth has joined #crystal-lang
astronavt has joined #crystal-lang
sagax has joined #crystal-lang
sorcus has joined #crystal-lang
badeball has quit [*.net *.split]
badeball has joined #crystal-lang
<FromGitter>
<alexherbo2> Is there an equivalent to Ruby `then` (functional `tap`)?
<FromGitter>
<naqvis> you don't have to write a macro for that, `try` does the same thing
<FromGitter>
<naqvis> difference between `tap` and `try` is that, `tap` returns self after yielding, while `try` returns the result of block. which should be what your posted link of ruby doc states
<FromGitter>
<naqvis> `try` comes with added benefit of `Nil` safetey, as it has been overridden by `Nil` and won't yield on `Nil` instance
<FromGitter>
<erdnaxeli:cervoi.se> you're right, `try` does the same thing as `then`
<FromGitter>
<RespiteSage> It's semantically a bit weird for that purpose, but it works.
<FromGitter>
<erdnaxeli:cervoi.se> I think it is ok semantically. It means "try to do this, unless self is nil then stop the chain.
DTZUZU_ has quit [Read error: Connection reset by peer]
DTZUZU_ has joined #crystal-lang
<FromGitter>
<RespiteSage> Yeah, I just mean that it's not quite the same semantically as a hypothetical `#then`. I agree that `#try` makes sense for its intended purpose, it's just that using it to chain operations on a non-nilable object isn't its intended purpose.
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 252 seconds]
justinmcp has quit [*.net *.split]
PixeLInc has quit [*.net *.split]
duane has quit [*.net *.split]
Nekka has quit [*.net *.split]
Xeago has quit [*.net *.split]
dostoyevsky has quit [*.net *.split]
dostoyevsky has joined #crystal-lang
duane has joined #crystal-lang
PixeLInc has joined #crystal-lang
Xeago has joined #crystal-lang
johnny101 has joined #crystal-lang
Nekka has joined #crystal-lang
justinmcp has joined #crystal-lang
early has quit [Ping timeout: 240 seconds]
ua has quit [Ping timeout: 240 seconds]
early has joined #crystal-lang
ua has joined #crystal-lang
<FromGitter>
<Daniel-Worrall> Any built in way to turn an Int representation of an IP and turn it into a String?
<hightower2>
@Blacksmoke16 what's the likelyhood of that 'undefined' idea of yours getting accepted? It would really be cool to have e.g. a declaration of @x = "test", and then define initialize( x = undefined ), and as long as it remains as undefined (as opposed to nil), it gets set to the default from class level
<hightower2>
likelihood*
<FromGitter>
<Blacksmoke16> that's not how i was picturing it to work
<FromGitter>
<Blacksmoke16> but it's possible, prob just not a high priority atm
<hightower2>
Can you remind me of issue# pls, can't find it in history
<FromGitter>
<Blacksmoke16> there isn't an issue, was just on the forums
<hightower2>
aha ok, that explains it :)
<FromGitter>
<Blacksmoke16> but the idea was mainly focused towards method overloading
<FromGitter>
<Blacksmoke16> e.g. overloading `self.new`