ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
hightower2 has quit [Ping timeout: 252 seconds]
<FromGitter> <Blacksmoke16> @jgaskins Oh, homebrew maintainor updated it which added the bottle
Munto has quit [Ping timeout: 252 seconds]
Munto has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
pusewic|away_ has quit [Ping timeout: 268 seconds]
kiwiroy has joined #crystal-lang
kevinsjoberg has joined #crystal-lang
pusewic|away_ has joined #crystal-lang
_whitelogger has joined #crystal-lang
greenbigfrog has quit [Ping timeout: 245 seconds]
greenbigfrog has joined #crystal-lang
hightower2 has joined #crystal-lang
HumanG33k has quit [Quit: WeeChat 3.0]
<FromGitter> <nanobowers> This is probably a dumb question, but i'm unclear how the stdlib works re: `#to_s`: ⏎ ⏎ I'm poking at redefining `inspect` for Tuple, which calls `to_s`. to_s takes an IO param, but inspect never passes it in. ⏎ when i redefine inspect to call basically the same function, it doesnt work, so feels
<FromGitter> ... like there is some magic here that i'm missing. example at: []
<FromGitter> <nanobowers> I suppose the crux is that `#inspect` is not explicitly passing an IO object to `#to_s`, so it must be implied from somewhere else
<FromGitter> <Blacksmoke16> you need to define `def inspect(io : IO) : Nil`
<FromGitter> <Blacksmoke16> same thing with `to_s`
<FromGitter> <nanobowers> I think the key is that there was some inheritance in `Object` for the arg-less version of to_s, etc..
<FromGitter> <Blacksmoke16> the argless versions call the IO versions
<FromGitter> <Blacksmoke16> of which if you dont override it'll use the inherited version, thus you still see the default output
<FromGitter> <nanobowers> is there a way to do a `responds_to?` with a particular argument signature?
<FromGitter> <Blacksmoke16> no
Stephie has quit [Quit: Fuck this shit, I'm out!]
Stephie has joined #crystal-lang
Vexatos has quit [Quit: Client Quit]
Vexatos has joined #crystal-lang
hightower2 has quit [Ping timeout: 268 seconds]
Munto has quit [Ping timeout: 252 seconds]
Munto has joined #crystal-lang