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
Stephie has quit [Quit: Fuck this shit, I'm out!]
Vexatos has quit [Quit: ZNC Quit]
Stephie has joined #crystal-lang
daemonwrangler has quit [Quit: ZNC 1.8.2 - https://znc.in]
daemonwrangler has joined #crystal-lang
cloaked1 has quit [Ping timeout: 246 seconds]
cloaked1 has joined #crystal-lang
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 246 seconds]
f1reflyylmao is now known as f1refly
cloaked1 has quit [Ping timeout: 252 seconds]
Vexatos has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Ping timeout: 246 seconds]
emonn has joined #crystal-lang
emonn has quit [Ping timeout: 240 seconds]
baweaver has joined #crystal-lang
Vexatoast has joined #crystal-lang
Vexatos has quit [Ping timeout: 246 seconds]
_ht has joined #crystal-lang
ua has quit [Ping timeout: 252 seconds]
ua has joined #crystal-lang
<FromGitter> <erdnaxeli:cervoi.se> hi, is there a way to do this? https://carc.in/#/r/ap22
<FromGitter> <erdnaxeli:cervoi.se> i.e. resolve a type that is defined after the macro is called?
<FromGitter> <erdnaxeli:cervoi.se> I can do this (https://carc.in/#/r/ap25) but my macro is actually way more complexe than just one line
hendursaga has joined #crystal-lang
hendursa2 has quit [Ping timeout: 240 seconds]
<FromGitter> <naqvis> idt there exists one liner, but you will have to rely on `finished` hook, as that guarantees parsing is complete and all types and their methods are known
<FromGitter> <erdnaxeli:cervoi.se> erf
mipmip has quit [Ping timeout: 252 seconds]
mipmip has joined #crystal-lang
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 240 seconds]
ua has quit [Ping timeout: 252 seconds]
ua has joined #crystal-lang
zorp has joined #crystal-lang
zorp has quit [Client Quit]
<FromGitter> <zomatree0:matrix.org> is there an easier way to do this? ⏎ ⏎ ```bot = data["bot"]? ⏎ if bot ⏎ bot = bot.as_s ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=60649bb16b7b535ee1eb9027]
<FromGitter> <Blacksmoke16> `bot = bot.as_s?`
<FromGitter> <Blacksmoke16> er `data["bot"]?.try &.as_s`
<FromGitter> <Blacksmoke16> although id suggest looking into https://crystal-lang.org/api/master/JSON/Serializable.html versus using `JSON.parse`
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 268 seconds]
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Read error: Connection reset by peer]
dostoyevsky has quit [Ping timeout: 268 seconds]
DTZUZU_ is now known as DTZUZU
dostoyevsky has joined #crystal-lang
<FromGitter> <HertzDevil> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=6064c20547b0403241afa48b]
<FromGitter> <HertzDevil> i did it
dostoyevsky has quit [Quit: leaving]
dostoyevsky has joined #crystal-lang
<FromGitter> <Blacksmoke16> nice! this related to that proc change as that should work now
<FromGitter> <HertzDevil> i don't think this is related
<FromGitter> <HertzDevil> this is more reconciling the behaviour between while loops and `loop`
<FromGitter> <Blacksmoke16> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=6064d32b47b0403241afd5b7]
<FromGitter> <Blacksmoke16> can use `break` to make this example work (with some refactoring)
_ht has quit [Remote host closed the connection]
oprypin has quit [Quit: Bye]
oprypin has joined #crystal-lang
<FromGitter> <HertzDevil> what's happening with the macos ci
<straight-shoota> dunno
<straight-shoota> last one that finished was https://github.com/crystal-lang/crystal/actions/runs/704604629
<straight-shoota> IIRC max execution time is 6h
<straight-shoota> so let's see what happens then :D