jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.7 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <Sija> @jwoertink In ruby it's an alias to `String#size` method which Crystal provides
<FromGitter> <Sija> `String#<<` would act more as a syntactic sugar making it easy to use it as any `IO`
<FromGitter> <jwoertink> Isn't `String#<<` an alias to `String#concat` in ruby?
pawnbox has quit [Ping timeout: 258 seconds]
<FromGitter> <Sija> it is, though i'm thinking more of a case of `"hello" << " world" << " from" << " Crystal"`
<FromGitter> <jwoertink> My guess is that methods that are an alias in ruby aren't being included in crystal. Though, I just tried and `String#concat` doesn't seem to exist either
<FromGitter> <jwoertink> I guess `+` is the way to go
<FromGitter> <Sija> yep, still I'd love to see `<<` in stdlib though
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vKSQa
<crystal-gh> crystal/master 299bbdd Ary Borenszweig: Fixed #3040: Compiler crash when using responds_to? in case statement switch
<FromGitter> <cjgajard> I think there is no `String#<<` because in Crystal strings are immutable
<FromGitter> <jwoertink> Ah, yeah, that would make sense.
<FromGitter> <asterite> String is immutable. Check String.build and MemoryIO for a replacement of String#+ and String#<<
<FromGitter> <Sija> @asterite I know 'em, but IMO since there is `String#+` there could be a `<<` alias too... :)
pawnbox has joined #crystal-lang
onethirtyfive has joined #crystal-lang
pawnbox has quit [Ping timeout: 276 seconds]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
<travis-ci> crystal-lang/crystal#299bbdd (master - Fixed #3040: Compiler crash when using responds_to? in case statement switch): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/147075383
pawnbox has joined #crystal-lang
onethirt_ has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
onethirt_ has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 265 seconds]
onethirt_ has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
onethirt_ has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
onethirt_ has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
onethirt_ has quit [Read error: Connection reset by peer]
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
onethirtyfive has quit [Remote host closed the connection]
ponga has quit []
snsei has joined #crystal-lang
onethirtyfive has joined #crystal-lang
snsei has quit [Ping timeout: 276 seconds]
onethirtyfive has quit [Remote host closed the connection]
dannluci1no has joined #crystal-lang
dannluciano has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
nakilon has quit [Quit: WHY NOT?]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
zz_Cidan is now known as Cidan
snsei has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<FromGitter> <HCLarsen> If String is immutable, is there going to be a mutable variant, like Apple did with their Cocoa library?
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onethirtyfive has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
onethirt_ has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
snsei has quit [Remote host closed the connection]
onethirt_ has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
onethirtyfive has joined #crystal-lang
onethirt_ has joined #crystal-lang
onethirtyfive has quit [Read error: Connection reset by peer]
dminuoso has joined #crystal-lang
onethirt_ has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
dminuoso_ has joined #crystal-lang
dminuoso has quit [Ping timeout: 260 seconds]
Cidan is now known as zz_Cidan
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
dminuoso_ has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
mark_66 has joined #crystal-lang
dminuoso has joined #crystal-lang
<BlaXpirit> HCLarsen, Slice is a mutable bytestring
dminuoso has left #crystal-lang [#crystal-lang]
dannluci1no has quit [Ping timeout: 244 seconds]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
zodiak has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
anthony_ has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
dannluciano has joined #crystal-lang
dannluciano has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
Ven_ has joined #crystal-lang
soveran has quit [Remote host closed the connection]
trapped has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
dannluciano has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
dannluciano has quit [Ping timeout: 265 seconds]
<crystal-gh> [crystal] puppetpies closed pull request #3038: Added tail UNIX like functionality (master...tailfunc) https://git.io/vKSwZ
cyrillk has joined #crystal-lang
soveran has joined #crystal-lang
<FromGitter> <sdogruyol> hey all
<FromGitter> <alex-lairan> hi @sdogruyol :)
sooli has joined #crystal-lang
soveran has quit [Remote host closed the connection]
djdarkbeat has quit [Quit: djdarkbeat]
anthony_ has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
dannluciano has joined #crystal-lang
dannluciano has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
sooli has quit [Ping timeout: 260 seconds]
paulcsmith_ has joined #crystal-lang
snsei_ has joined #crystal-lang
soveran has joined #crystal-lang
snsei has quit [Ping timeout: 244 seconds]
snsei_ has quit [Remote host closed the connection]
snsei has joined #crystal-lang
djdarkbeat has joined #crystal-lang
Oliphaunte has joined #crystal-lang
dannluciano has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vK9b8
<crystal-gh> crystal/master b7e792e Ary Borenszweig: Fixed #3042: incorrects docs highlighting for %w(...) and %i(...)
dannluciano has quit [Ping timeout: 265 seconds]
Philpax_ has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
Raimondi has quit [Quit: All hail WeeChat 1.5-dev!]
Excureo has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
<travis-ci> crystal-lang/crystal#b7e792e (master - Fixed #3042: incorrects docs highlighting for %w(...) and %i(...)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/147207950
A124 has quit [Quit: '']
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Remote host closed the connection]
A124 has joined #crystal-lang
Guest55646 is now known as adam12
matp has joined #crystal-lang
dannluciano has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vKHL0
<crystal-gh> crystal/master bd222bf Endika Gutiérrez: BigInts now uses gmp implementation of gcd and lcm
<crystal-gh> crystal/master ca55409 Ary Borenszweig: Merge pull request #3039 from endSly/master...
mark_66 has quit [Remote host closed the connection]
<FromGitter> <jwoertink> Hey, can anyone help explain how the `ECR.embed` works? It looks like it's a macro, so I guess, how do I get outside variables to run inside that macro?
<FromGitter> <jwoertink> when I try to compile this bit of code, it throws an error (shown in comments)
<FromGitter> <jwoertink> I've also tried doing something like `ECR.embed("#{ {{ecr_file}} }", io)`, and also tried copying this example https://github.com/crystal-lang/shards/blob/a9fa2c55a5ef61b69a256c2fa0e3dfee8fcaf757/src/commands/init.cr#L12-L14
<FromGitter> <jwoertink> I just run in to the same issue, or get syntax errors for nested macro statement
srabuini has joined #crystal-lang
sebasr has quit [Ping timeout: 260 seconds]
<jhass> jwoertink: yes it's a macro, so you can't pass it a runtime value as an argument
<FromGitter> <jwoertink> I just tried using the `ECR.process_file`, and that doesn't fail, but all of the files come out blank...
<jhass> probably just swallows the error or something
<jhass> it's a macro too
<FromGitter> <jwoertink> oh
<FromGitter> <jwoertink> In the case of what I'm trying to do, should I just make all those static filenames?
<jhass> yes
<FromGitter> <jwoertink> I'll probably have to do this like 10 times
onethirtyfive has joined #crystal-lang
<FromGitter> <jwoertink> alrighty then
<FromGitter> <jwoertink> thanks
<jhass> you can do something like {% for file in `find templates -type f -name *.ecr`.split("\n") %} I guess
Oliphaunte has quit [Remote host closed the connection]
dannluciano has quit [Ping timeout: 264 seconds]
zodiak has joined #crystal-lang
cyrillk has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
willl has joined #crystal-lang
<[spoiler]> Oh. This gitter thing works both ways. Nice
Oliphaunte has joined #crystal-lang
<travis-ci> crystal-lang/crystal#ca55409 (master - Merge pull request #3039 from endSly/master): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/147233710
dannluciano has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
djdarkbeat has quit [Read error: Connection reset by peer]
dannluciano has quit [Ping timeout: 244 seconds]
dannluciano has joined #crystal-lang
dannluci1no has joined #crystal-lang
dannluciano has quit [Ping timeout: 260 seconds]
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <jmoriau> Is it possible to auto-unpack a named tuple in a block arg? Tried a few things but couldn't figure it out :/
<BlaXpirit> jmoriau "auto"?
<BlaXpirit> jmoriau, "auto"?
<FromGitter> <jmoriau> yeah it can be done with normal tuple
<FromGitter> <jmoriau> something like .each {|key, (a, b)|}
<FromGitter> <jmoriau> where (a, b) is a Tuple as the value for key
<crystal-gh> [crystal] ysbaddaden opened pull request #3043: IO::Hexdump for binary protocol inspection (master...std-io-hexdump) https://git.io/vKHMJ
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
<tilpner> The docs for rand(int) say the values is greater than 0. That seems wrong?
<tilpner> *values are/*value is
<BlaXpirit> tilpner, where
<BlaXpirit> ah right.
<tilpner> BlaXpirit - https://crystal-lang.org/api/0.18.7/Random.html#rand%28max%3AInt%29%3AInt32-instance-method
<BlaXpirit> https://crystal-lang.org/api/0.18.7/Random.html#rand%28max%3AInt%29%3AInt32-instance-method
<BlaXpirit> wrong
dannluci1no has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vKHH5
<crystal-gh> crystal/master 6f83d17 Ary Borenszweig: Compiler: unify CStructOrUnionType with NonGenericClassType....
<crystal-gh> crystal/master c25e705 Ary Borenszweig: Random: doc fix for `rand(Int)`
<tilpner> +1
<crystal-gh> [crystal] endSly opened pull request #3046: Added support for negating unsigned integers (master...master) https://git.io/vKHb6
<travis-ci> crystal-lang/crystal#c25e705 (master - Random: doc fix for `rand(Int)`): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/147292199
dannluciano has joined #crystal-lang
matp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dannluciano has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
matp has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
Oliphaunte has quit [Remote host closed the connection]
Philpax_ has joined #crystal-lang
Philpax_ has quit [Ping timeout: 252 seconds]
trapped has quit [Ping timeout: 258 seconds]
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dannluciano has joined #crystal-lang
dannluciano has quit [Ping timeout: 240 seconds]