ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
hightower4 has joined #crystal-lang
ur5us has quit [Ping timeout: 252 seconds]
ur5us has joined #crystal-lang
deavmi has quit [Quit: No Ping reply in 180 seconds.]
deavmi has joined #crystal-lang
deavmi has quit [Quit: No Ping reply in 180 seconds.]
deavmi has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
avane has quit [Ping timeout: 245 seconds]
avane has joined #crystal-lang
watzon has quit [Ping timeout: 244 seconds]
elf_fortrez has joined #crystal-lang
<FromGitter> <manveru:matrix.org> when debugging a C binding with gdb, is there some way to step into the actual C functions? it seems to just skip over them...
<FromGitter> <manveru:matrix.org> i also tried with lldb with the same behaviour...
elf_fortrez has quit [Ping timeout: 256 seconds]
nopcOde has joined #crystal-lang
nopc0de_ has quit [Ping timeout: 244 seconds]
hightower4 has quit [Ping timeout: 252 seconds]
hightower2 has joined #crystal-lang
elf_fortrez has joined #crystal-lang
elf_fortrez has quit [Client Quit]
<f1refly> how do i check if some enumerable is not nil and contains values in the same condition?
<f1refly> myarr && !myarr.empty? doesnt work for obvious reasons
<FromGitter> <Blacksmoke16> `!myarr.try &.empty?` maybe
<FromGitter> <Blacksmoke16> or `if (arr = myarr) && !arr.empty?`
<f1refly> i had the second variant working, but the first is the syntax i was looking for
<f1refly> thank a lot
<FromGitter> <Blacksmoke16> 👍
<FromGitter> <Blacksmoke16> technically wouldnt the first one be wrong if its nil?
<FromGitter> <Blacksmoke16> as `!nil # => true`
<f1refly> yes, i probably need to check the length
<f1refly> and then not revert it
<f1refly> hmm
Peter0x44 has quit [Ping timeout: 244 seconds]
Peter0x44 has joined #crystal-lang
<yxhuvud> @manveru: I dunno, but could be worth filing an issue about it to figure out if it is posible or not
ur5us has joined #crystal-lang
watzon has joined #crystal-lang
watzon has quit [Quit: WeeChat 3.2]
watzon has joined #crystal-lang