ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
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> <> hm, would be nice to have a way to "hard comment" that ignores all macro statements in a line. maybe just `##`.
<FromGitter> <> 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> <> yeh, but when fiddling with macro code i often just want to comment things in & out quickly.
<FromGitter> <> looks like this has already been proposed
<FromGitter> <> but got it shootered straight down ;)
<FromGitter> <> 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> <> well that's the part that doesn't work
<FromGitter> <> at least not if there are escapes involved
<FromGitter> <> 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> <> 👎 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> <> sure, workarounds are possible. clip history, making a vim plugin that can properly escape macros etc.
<FromGitter> <> 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