Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
Raimondi has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
broz has joined #crystal-lang
broz has quit [Ping timeout: 276 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
broz has joined #crystal-lang
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 264 seconds]
broz has quit [Read error: Connection reset by peer]
broz_ has joined #crystal-lang
broz_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
brunto has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
emancu has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
brunto has quit [Ping timeout: 276 seconds]
zeno_ has joined #crystal-lang
zeno_ has quit [Client Quit]
emancu_ has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
asterite_ has joined #crystal-lang
miketheman_ has joined #crystal-lang
emancu has quit [*.net *.split]
miketheman has quit [*.net *.split]
asterite has quit [*.net *.split]
ldlework has quit [*.net *.split]
pabs has quit [*.net *.split]
miketheman_ is now known as miketheman
asterite_ is now known as asterite
ldlework has joined #crystal-lang
emancu has joined #crystal-lang
salvor has joined #crystal-lang
emancu_ has quit [*.net *.split]
fmcevoy has quit [*.net *.split]
mlitwiniuk has quit [*.net *.split]
wmoxam has quit [*.net *.split]
salvor- has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
tilpner has quit [*.net *.split]
acetoxy has quit [*.net *.split]
yxhuvud has quit [*.net *.split]
ldlework has quit [*.net *.split]
tilpner has joined #crystal-lang
Papierkorb has joined #crystal-lang
pabs has joined #crystal-lang
yxhuvud has joined #crystal-lang
acetoxy has joined #crystal-lang
brunto has joined #crystal-lang
wmoxam has joined #crystal-lang
pleiosaur has joined #crystal-lang
rolha_ has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rolha has quit [Ping timeout: 244 seconds]
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 260 seconds]
trapped has joined #crystal-lang
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 260 seconds]
pawnbox_ has joined #crystal-lang
fmcevoy has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
jeromegn has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 260 seconds]
pawnbox_ has joined #crystal-lang
jeromegn has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
pawnbox has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 264 seconds]
ldlework has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
brunto has quit [Ping timeout: 264 seconds]
pawnbox has joined #crystal-lang
mlitwiniuk has joined #crystal-lang
brunto has joined #crystal-lang
brunto has quit [Ping timeout: 268 seconds]
brunto has joined #crystal-lang
rolha_ has quit [Ping timeout: 244 seconds]
rolha has joined #crystal-lang
rvchangue has quit [Ping timeout: 260 seconds]
rvchangue has joined #crystal-lang
brunto has quit [Ping timeout: 268 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
brunto has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
grindhold has quit [Ping timeout: 244 seconds]
grindhold has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
miketheman has quit [Ping timeout: 244 seconds]
bjmllr has quit [Ping timeout: 244 seconds]
miketheman has joined #crystal-lang
bjmllr has joined #crystal-lang
brunto has quit [Ping timeout: 268 seconds]
pawnbox has joined #crystal-lang
<[spoiler]>
Yo. Which style is preferred in the stdlib `def abc(&block)` or no `def abc` when the method accepts a block? I feel like the former one makes it more obvious
<[spoiler]>
I am seeing both :/
bebac has joined #crystal-lang
<RX14>
[spoiler], they are different
brunto has joined #crystal-lang
<RX14>
def abc(&proc) captures the block as a proc, in a variable which can be passed around or otherwise stored
<RX14>
def abc; then using yield is a cheaper operation, but more limited
brunto has quit [Ping timeout: 250 seconds]
Raimondi has joined #crystal-lang
<[spoiler]>
RX14: I understand that they're different. I was merely addressing the issue of style. I realise that &block, and just using yield won't have any effect
<RX14>
the style is: use yield if you can, capture the block if you have to do fancy things
<[spoiler]>
I just meant the `def` line :P
<[spoiler]>
to make it obvious to whoever reads the method definition that it also accepts a block
<RX14>
but you wouldn't use &block unless it's neccesary
<[spoiler]>
No, of course not
<[spoiler]>
If you look at the API docs, you'll notice that the method signatures there add `&block`
<[spoiler]>
Even though the block isn't captured and used inside the method itself
<[spoiler]>
but only yields
<RX14>
huh
<RX14>
i didn't realise that
<[spoiler]>
I remember there being a discussion on the mailing list, or maybe in an issue regarding this, but I don't recall what the conclusion was
<[spoiler]>
This is why I came here to ask
rolha_ has joined #crystal-lang
rolha has quit [Ping timeout: 268 seconds]
brunto has joined #crystal-lang
unshadow has joined #crystal-lang
matp has quit [Ping timeout: 260 seconds]
Philpax has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Raimondi has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
<crystal-gh>
[crystal] omninonsense opened pull request #2469: Minor Range improvements (master...range-reverse_each) https://git.io/vwtog
<[spoiler]>
How much memory is required to compile all the specs o.o It farted out at a little over 2 gb for me (out of 4 allocated in the VM)
<[spoiler]>
there was a bunch of `fork: Cannot allocate memory` errors
unshadow has quit [Quit: leaving]
pawnbox has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
broz has joined #crystal-lang
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 250 seconds]
brunto has quit [Ping timeout: 250 seconds]
broz has quit [Ping timeout: 244 seconds]
broz has joined #crystal-lang
matp has joined #crystal-lang
brunto has joined #crystal-lang
broz has quit [Remote host closed the connection]
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
rolha has quit [*.net *.split]
rvchangue has quit [*.net *.split]
rolha has joined #crystal-lang
rvchangue has joined #crystal-lang
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
brunto has quit [Ping timeout: 276 seconds]
soveran has quit [Remote host closed the connection]
<crystal-gh>
[crystal] bebac opened pull request #2470: Add cache control headers to http static file handler + a few more mi… (master...static-file-handler) https://git.io/vwtSP
rolha has quit [Ping timeout: 250 seconds]
TheLemonMan has joined #crystal-lang
rolha has joined #crystal-lang
rolha_ has quit [Ping timeout: 268 seconds]
rolha has quit [Read error: Connection reset by peer]
rolha has joined #crystal-lang
sandelius has joined #crystal-lang
leafybas- has quit [Ping timeout: 260 seconds]
leafybasi has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Ven has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 2 new commits to master: https://git.io/vwtdT
<crystal-gh>
crystal/master c0de8b4 Will Leinweber: Adds BigRational...