bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
Nik736 has joined #crystal-lang
vikaton has quit [Quit: Connection closed for inactivity]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
vasilakisfil has joined #crystal-lang
vasilakisfil has quit [Client Quit]
vasilakisfil has joined #crystal-lang
akwiatkowski has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 256 seconds]
gloscombe has joined #crystal-lang
<crystal-gh>
[crystal] MakeNowJust opened pull request #3601: Correct IO#read_fully example (master...fix/io-read-fully-example) https://git.io/v1I1q
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
Philpax has joined #crystal-lang
soveran has quit [Remote host closed the connection]
gloscombe has quit [Ping timeout: 248 seconds]
gloscombe has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 268 seconds]
soveran has joined #crystal-lang
A124 has joined #crystal-lang
hako_ has joined #crystal-lang
hako has quit [Ping timeout: 258 seconds]
soveran_ has joined #crystal-lang
soveran has quit [Ping timeout: 246 seconds]
gloscombe has quit [Remote host closed the connection]
gloscombe has joined #crystal-lang
<FromGitter>
<agibralter> Does anyone have a suggestion on a mocking library to use?
AckZ has quit []
<BlaXpirit>
none if at all possible
Philpax has quit [Ping timeout: 260 seconds]
<FromGitter>
<agibralter> So basically depend on dependency injection and pass in fakes?
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
<FromGitter>
<agibralter> Also, what would be a good way for me to handle executing a system command that tails logs (e.g. `\`tail -f some/log.log\``) such that I can handle an interrupt from the user (ctrl-C) and not have crystal error out?
shawn42 has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
soveran_ has quit [Remote host closed the connection]
DeBot has joined #crystal-lang
soveran has joined #crystal-lang
<FromGitter>
<yxhuvud> You can trap the signal. Dunno where to find documentation on that though
hako_ has quit [Ping timeout: 260 seconds]
vivus-ignis has joined #crystal-lang
<FromGitter>
<firejox> Is there a way to expand the argument of macro like c macro ?
pduncan has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter>
<cjgajard> maybe you can try with macro escaping `\{% ` or `\{{`. what do you need it for?
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 244 seconds]
Raimondii is now known as Raimondi
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
x0f has quit [*.net *.split]
FromGitter has quit [*.net *.split]
foca has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
foca has joined #crystal-lang
FromGitter has joined #crystal-lang
x0f has joined #crystal-lang
krsh has joined #crystal-lang
soveran has quit [Remote host closed the connection]
vivus-ignis has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
krsh has joined #crystal-lang
krsh has quit [Client Quit]
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: https://git.io/v1Lz9
<crystal-gh>
crystal/master 0f2933a Sijawusz Pur Rahnama: Ditch code scheduled for removal after 0.19
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter>
<paulcsmith> Is there a macro hook for injecting code at the *bottom* instead of the top? I'm trying to make it so that if I forgot to check for authorization it fails to compile. Here is a simplified example of what I'm attempting to do: https://gist.github.com/paulcsmith/226ef9a8265875a5d933d7386a029934
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rolha has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
akwiatkowski has quit [Ping timeout: 264 seconds]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
mati_urunda has joined #crystal-lang
<FromGitter>
<jwoertink> I'm taking a look at the examples for using `String#match` on here https://crystal-lang.org/api/0.20.0/Regex/MatchData.html, but I'm getting `'String#match' is not expected to be invoked with a block` error
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
A124 has quit [Ping timeout: 268 seconds]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
akwiatkowski has joined #crystal-lang
bjz has quit [Ping timeout: 246 seconds]
<FromGitter>
<spalladino> > **<mussela>** I mean being able to eval code at runtime ⏎ ⏎ ⏎ @mussela just read this. There's someone building a dynamic language interpreter on top of crystal: https://github.com/KCreate/charly-lang. Though it's marked as not prod-ready, it might be useful for you if you need some sort of scripting language that can run from Crystal. As another option, there are at least 3 implementations of LISP interpreters in
<FromGitter>
<crisward> Does anyone know if it's possible to get a list of files and loop over their names in a macro?
<FromGitter>
<cjgajard> @crisward get a list of files.. from?
<FromGitter>
<spalladino> @crisward you can always call an external program via the `run` macro. You can loop over files in that program, and return whatever you need to be inserted as a macro. https://crystal-lang.org/api/0.20.0/Crystal/Macros.html#run%28filename%2C%2Aargs%29%3AMacroId-instance-method