straight-shoota has quit [Ping timeout: 244 seconds]
jhass has quit [Ping timeout: 276 seconds]
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
renich has quit [Quit: Leaving]
Liothen has quit [Ping timeout: 260 seconds]
<FromGitter>
<HertzDevil> suggestion: `topic:compiler:diagnostics` for issues/prs pertaining to compilation warnings and errors
Liothen has joined #crystal-lang
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
Sankalp has joined #crystal-lang
Sankalp has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
Sankalp has joined #crystal-lang
_ht has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<yxhuvud>
hertzdevil: Hmm, how do pipes enter the equation for oauth2? I find no reference to them for neither implementation nor specs.
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #crystal-lang
ur5us has joined #crystal-lang
<FromGitter>
<HertzDevil> `spec\std\http\spec_helper.cr` defines `run_handler` which calls `IO::Stapled.pipe`
<FromGitter>
<HertzDevil> `run_handler` is used only in `spec\std\oauth2\client_spec.cr`
<FromGitter>
<HertzDevil> `IO::Stapled.pipe` is backed by two `IO.pipe`s
ur5us has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #crystal-lang
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
ur5us has quit [Ping timeout: 272 seconds]
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
<yxhuvud>
Hmm. Looking for the original sources for the feature of setting up a http client on an arbitrary io the purpose was to make it work with stuff like socket files (though sockets spliced into pipes is a very valid use case).
<yxhuvud>
So that make sense. What I wonder about though is: Why is the specs for oauth2 using that? Could it use a regular network socket instead and have odd setups of http be handled by specs for http client?
<yxhuvud>
(I guess because it is slightly less work to set up a pipe. Hmm)
hightower2 has quit [Remote host closed the connection]
hightower2 has joined #crystal-lang
Sankalp has quit [Ping timeout: 240 seconds]
Sankalp has joined #crystal-lang
hightower2 has quit [Ping timeout: 272 seconds]
hightower2 has joined #crystal-lang
<FromGitter>
<stellarpower> Quick question, can I use the runtime type of an object in a case statement?
<FromGitter>
<Blacksmoke16> yes
<FromGitter>
<stellarpower> What would I need to use, I presume typeof() is a static thing?