ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
SamantazFox has quit [Killed (NickServ (GHOST command used by SamantazFox_))]
SamantazFox_ has joined #crystal-lang
bastienleonard has quit [Ping timeout: 244 seconds]
<jrayhawk> Why does the following produce a compile-time error? if false; puts "false"; {% if true %} elsif true; puts "true"; {% end %} end
<FromGitter> <Blacksmoke16> ```elsif true ⏎ puts "true"``` ⏎ ⏎ isnt valid on its own, so it just fails [https://gitter.im/crystal-lang/crystal?at=62ccd6a022c53438bc631fca]
Sankalp has quit [Ping timeout: 240 seconds]
<jrayhawk> oh, ugh. okay.
Sankalp has joined #crystal-lang
postmodern has joined #crystal-lang
<postmodern> i'm curious, does crystal has an equivalent of ruby's `foo &.method` short-hand? i'm guessing it's not really that useful since you can define variables as not being nil-able.
<FromGitter> <remiliascarlet:nanako.mooo.com> I've seen that same syntax used, such as `newString = something.map &.to_s`
<FromGitter> <Blacksmoke16> Probably would just be .try
_ht has joined #crystal-lang
Flipez4 has joined #crystal-lang
amk_ has joined #crystal-lang
Stephie- has joined #crystal-lang
fifr_ has joined #crystal-lang
Stephie has quit [Quit: Fuck this shit, I'm out!]
Flipez has quit [Quit: Ping timeout (120 seconds)]
amk has quit [Read error: Connection reset by peer]
fifr has quit [Quit: ZNC 1.8.2 - https://znc.in]
dannyAAM has quit [Remote host closed the connection]
_ht has quit [Quit: No Ping reply in 180 seconds.]
Flipez4 is now known as Flipez
wolfshappen_ has quit [Read error: Connection reset by peer]
dannyAAM has joined #crystal-lang
wolfshappen has joined #crystal-lang
_ht has joined #crystal-lang
jrayhawk has quit [Ping timeout: 268 seconds]
jrayhawk has joined #crystal-lang
_ht has quit [Remote host closed the connection]
Sankalp has quit [Ping timeout: 244 seconds]
jmiven has quit [Quit: reboot]
jmiven has joined #crystal-lang
amk_ has quit [Remote host closed the connection]
amk has joined #crystal-lang
Sankalp has joined #crystal-lang
notzmv has quit [Ping timeout: 276 seconds]
notzmv has joined #crystal-lang
ur5us has joined #crystal-lang
postmodern has quit [Remote host closed the connection]
_ht has joined #crystal-lang
ur5us has quit [Quit: Leaving]
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 272 seconds]
ur5us has joined #crystal-lang
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp has joined #crystal-lang
Sankalp has quit [Ping timeout: 264 seconds]
Sankalp has joined #crystal-lang
<FromGitter> <Dan-Do> Can someone show me how to fix this error?
<FromGitter> <Dan-Do> https://carc.in/#/r/dfme
<FromGitter> <Blacksmoke16> for one, i wouldnt use a recursive alias
<FromGitter> <Dan-Do> Yeah, there is a comment "Thanks, I basically copied the json module" :)
<FromGitter> <Dan-Do> I did the same
<FromGitter> <Blacksmoke16> well the json module doesnt use a recursive alias, so you kinda didnt
<FromGitter> <Dan-Do> A lot of discussion since 2017 :) https://github.com/crystal-lang/crystal/issues/5155
<FromGitter> <Dan-Do> Actually the recursive alias is in json::any
<FromGitter> <Blacksmoke16> there is no recursive alias
<FromGitter> <Blacksmoke16> its a recursive type
<FromGitter> <Blacksmoke16> functionally the same thing, but less buggy
ur5us has quit [Ping timeout: 255 seconds]
<FromGitter> <Dan-Do> It's ok now except the boilerplate `.as(Test::Foo::Type)}` on every function call
<FromGitter> <Dan-Do> https://carc.in/#/r/dfnc
<FromGitter> <Blacksmoke16> still would refactor to now use that
<FromGitter> <Blacksmoke16> but okay
<FromGitter> <Blacksmoke16> to not*
<FromGitter> <Dan-Do> How would you make that? I tried some ways but failed
bastienleonard has joined #crystal-lang
<FromGitter> <Blacksmoke16> https://carc.in/#/r/dfnm something like this i think
casionaut has joined #crystal-lang
casionaut has quit [Quit: Client closed]
_ht has quit [Remote host closed the connection]
Stephie- has quit [*.net *.split]
Flipez has quit [*.net *.split]
SamantazFox_ has quit [*.net *.split]
sagax has quit [*.net *.split]
Stephie- has joined #crystal-lang
Flipez has joined #crystal-lang
SamantazFox_ has joined #crystal-lang
sagax has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]