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
sorcus has quit [Ping timeout: 250 seconds]
sorcus has joined #crystal-lang
ur5us_ has quit [Ping timeout: 240 seconds]
<FromGitter> <HertzDevil> second example should print X-B and Y-B last, like the first one
<FromGitter> <HertzDevil> tried with #11840 and it works with `-Dpreview_overload_order`
<FromGitter> <HertzDevil> (btw i really hope these two prs get merged asap, plus an upcoming one for macro overloads)
<FromGitter> <moe:busyloop.net> hm, would be nice to have a way to "hard comment" that ignores all macro statements in a line. maybe just `##`.
<FromGitter> <moe:busyloop.net> commenting them out is kinda iffy at the moment, my current strategy is to go in and put a space between all `{ %`'s
jmdaemon has quit [Ping timeout: 260 seconds]
<FromGitter> <moe:busyloop.net> yeh, but when fiddling with macro code i often just want to comment things in & out quickly.
<FromGitter> <moe:busyloop.net> looks like this has already been proposed https://github.com/crystal-lang/crystal/issues/8408#issuecomment-548659454
<FromGitter> <moe:busyloop.net> but got it shootered straight down ;)
<FromGitter> <moe:busyloop.net> e.g. say you have a complicated {% else %} case in a macro, and want to try a different variant. ⏎ currently i basically eyeball how many `{%`'s are in there that i'd need to patch up and then either defuse them with spaces, or cut out whole section and stash it in a temp file. not a huge deal, but not a great dev experience either.
Guest41 has joined #crystal-lang
Guest41 has quit [Client Quit]
nq_ has quit [Quit: Leaving]
<FromGitter> <Blacksmoke16> can also just cut/paste it somewhere else in the file and comment it out
<FromGitter> <moe:busyloop.net> well that's the part that doesn't work
<FromGitter> <moe:busyloop.net> at least not if there are escapes involved
<FromGitter> <moe:busyloop.net> ah, actually it does seem to work. guess i had just not scrolled far enough to get out of my nested macros.
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <moe:busyloop.net> 👎 that's actually worse than putting it in a different file, now i have to search it to bring it back
<FromGitter> <Blacksmoke16> :S not still in your clipboard?
<FromGitter> <moe:busyloop.net> sure, workarounds are possible. clip history, making a vim plugin that can properly escape macros etc.
<FromGitter> <moe:busyloop.net> but why make life harder than need be 🤷‍♂️
<FromGitter> <Blacksmoke16> add in `{% elsif true %}` and do it there :P
Melancholia[m] has quit [Quit: You have been kicked for being idle]
renich has joined #crystal-lang
rymiel has quit [Quit: quit]
rymiel has joined #crystal-lang
jmdaemon has joined #crystal-lang