Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unshadow has joined #crystal-lang
<unshadow>
Is there a reason why this: http://carc.in/#/r/704 in crystal behaves like it does, but, in ruby this will return bar = {bar => "bar", foo => "fooo"} , foo = ""
<jhass>
unshadow: the keyword argument syntax is different in Ruby
<jhass>
there you need to explicitly declare them as keyword argument
<jhass>
*s
<jhass>
while crystal allows you to call with keyword arguments for all arguments that have a default value
<jhass>
you can see the macro language as a templating language that's run before the compiler parses your code (well, it's actually intertwined with that, but for the mental model)
<zamith>
so I can't get contents from a file at runtime and do stuff with them?
<zamith>
unless its inside a macro or something like that?
<jhass>
not unless
<jhass>
macros don't exist in runtime
<zamith>
right, sure
<zamith>
I got that
<jhass>
they're completely evaluated at compile time
<jhass>
and sure you can read a file at runtime, but your runtime isn't the compiler, it can't parse code and then change its own binary
<zamith>
right, but in this particular case I want it doesn't have to do that
<zamith>
it just needs to "parse" a string and maybe clone some repos
<jhass>
well, the Projectfile is implemented as code, as a sort of DSL
<jhass>
that's why ysbaddaden went with YAMl instead I guess
<jhass>
easier to completely evaluate at runtime
<zamith>
oh ok
<jhass>
anyway, you probably should invest your time into shards instead, as said it's likely going to replace crystal deps
<zamith>
sure, I was just having this issue and wanted to see if there was something in the code that could help me
<zamith>
but I solved it for now, so thanks
NeverDie_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 246 seconds]
luislavena has quit []
mhib has joined #crystal-lang
mhib has quit [Quit: Leaving]
zamith has quit [Quit: Be back later ...]
fowlduck has joined #crystal-lang
zamith has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
NeverDie_ is now known as NeverDie
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
NeverDie has joined #crystal-lang
orliesaurus has quit [Ping timeout: 256 seconds]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
havenwood has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 248 seconds]
havenwood has quit [Ping timeout: 256 seconds]
blue_deref has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
fowlduck has joined #crystal-lang
NeverDie has joined #crystal-lang
blue_deref has quit [Quit: bbn]
havenwood has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
havenwood has quit [Read error: Connection reset by peer]