NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Guest63985 is now known as adam12
dbackeus has joined #crystal-lang
<vegai>
hmm, so the new bountysource backers' program is now monthly based?
<vegai>
so the reward also lasts for a month and no longer?
<vegai>
I understand your motivations for that, but I'm also a bit saddened to have just missed the window of getting permanent rewards for a mere $1K :P
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thenameiselvis has quit [Quit: Leaving]
leafybas_ has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
kyrylo has joined #crystal-lang
strcmp1 has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
sleeper_ is now known as sleeper
strcmp1 has quit [Client Quit]
trapped has joined #crystal-lang
leafybasil has joined #crystal-lang
strcmp1 has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
dbackeus has quit [Ping timeout: 250 seconds]
BlaXpirit has quit [Quit: Konversation]
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
flou has joined #crystal-lang
dbackeus has quit [Ping timeout: 240 seconds]
<nopc0de>
Can instance variables not be nillable?
<flou>
hello everyone, there's something that I don’t really understand when working with XML in crystal
<flou>
https://gist.github.com/flou/cdeceab05a5280012763 : in this code `puts heading` returns `<heading>Reminder</heading>` and I'd like to access the content of this node but I can't seem to figure out how
<flou>
and any method I call on `heading` returns `undefined method`
dbackeus has joined #crystal-lang
<nopc0de>
fml, just realized crystal is licensed under apache 2
<nopc0de>
why :(
<nopc0de>
Does the license have any effect on my work using crystal?
<strcmp1>
licenses normally dont transcend onto code written in the language
<strcmp1>
e.g license applies to compiler code
<strcmp1>
i dont know much about apache
oal has quit [Remote host closed the connection]
oal has joined #crystal-lang
<jhass>
strcmp1: nopc0de Apache is similar to MIT/BSD but includes usage grant any patents
<jhass>
*of any
<jhass>
nopc0de: yes, but setting them in all initializers to a non-nil value and never assigning nil afterwards
<jhass>
flou: .xpath can return any of the types listed in the error message
nahtnam has quit [Quit: Connection closed for inactivity]
<crystal-gh>
[crystal] asterite closed pull request #692: Time Format: %W for week number of year (master...feature/time-format-week-of-year) http://git.io/vTQdC
NeverDie has quit [Read error: Connection reset by peer]
<sardaukar>
jhass: how was it immediately obvious to you from "def autocomplete(&@@completion_proc : CompletionProc)" ?
<jhass>
&foo captures a block as a Proc into foo, : bar type restricts the signature of that Proc/block, CompletionProc is an alias defined a couple lines above
<jhass>
and def foo(@bar, @@baz) is a shortcut to def foo(bar, baz); @bar = bar; @@baz = baz; end
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
dbackeus has quit [Remote host closed the connection]
<crystal-gh>
[crystal] asterite pushed 4 new commits to master: http://git.io/v32PR
<crystal-gh>
crystal/master cafead6 Will Leinweber: Document BitArray
<crystal-gh>
crystal/master cafe43b Will Leinweber: Add BitArray#toggle
<crystal-gh>
crystal/master cafecba Will Leinweber: Add BitArray#invert
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/v32PM
<crystal-gh>
crystal/master 8198b37 Ary Borenszweig: Small working fix
<sardaukar>
weird... why is there no to_sym on String?
<BlaXpirit>
and the whole point of symbols is that they're turned to integer constants at compile time
<sardaukar>
I see
<sardaukar>
I just have this hash with Symbol keys (less typing) and wanted to match at runtime
<jhass>
to_sym is a code smell in Ruby too
<sardaukar>
sigh... these habits will be hard to shake
<jhass>
even with the Symbol GC in 2.2
<sardaukar>
jhass: why?
<jhass>
normalize to strings, in both languages
<sardaukar>
I thought it was a perf booster, since there's only one copy of a given Symbol
<jhass>
the strong point prior 2.2 was that they weren't garbage collected, strings are easily user input so that was an easy DoS vector
<sardaukar>
instead of strings being duplicated even when equal content
BlaXpirit has quit [Quit: Konversation]
<asterite>
I even think now that having symbols in the language might not be good. Or at least maybe remove the {foo: 1} hash syntax, maybe it's not that needed in crystal in comparison to ruby
<sardaukar>
I'll miss typing less
<sardaukar>
but I get it
<waj>
If symbols didn’t exist in Crystal, then {foo: 1} could be the same as {“foo”: 1}
<sardaukar>
THAT is cool :D
<jhass>
I'd still really like symbol to enum conversion in calls though
<jhass>
it would feel weird for strings though and could clash for constants
<sardaukar>
jhass: still on readline, why is it we can return a string array but only one match is ever returned?
<jhass>
no idea
<sardaukar>
I don't understand what the Pointer manipulation code at the end of readline.cr does