andremedeiros has quit [Quit: ZNC 1.8.1 - https://znc.in]
andremedeiros has joined #crystal-lang
oddp has quit [Ping timeout: 240 seconds]
<FromGitter>
<andrewc910> Why are some variables in shards/gems prepended with an underscore? What does it represent? Like `@_broadcast_handlers`. The author of Jennifer also does this quite a bit.
sagax has joined #crystal-lang
Human_G33k has quit [Quit: Leaving]
<FromGitter>
<Blacksmoke16> it is/was a common practice in some langs to denote it as private or internal
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 272 seconds]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
<FromGitter>
<andrewc910> That's what it looked like. Thank you
HumanG33k has quit [Quit: Leaving]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
<FromGitter>
<Blacksmoke16> no
<FromGitter>
<Blacksmoke16> np
masterdonx2 has joined #crystal-lang
MasterdonX has quit [Ping timeout: 258 seconds]
renich has quit [Quit: renich]
alexherbo2 has joined #crystal-lang
oprypin has quit [Ping timeout: 256 seconds]
rocx has quit [Ping timeout: 256 seconds]
f1refly has quit [Read error: Connection reset by peer]
f1reflyylmao has joined #crystal-lang
_whitelogger has joined #crystal-lang
mjblack has quit [Ping timeout: 240 seconds]
<FromGitter>
<confact> Before Kindmetrics I was doing a git hosting service to learn git deep depth but also Crystal and Lucky. Now I have made it open source as I lost a bit of motivation and would love to give it some life again. Would love any help I can get on it :) ⏎ ⏎ https://github.com/microgit-com/microgit
<FromGitter>
<lbarasti> removing `.slice` or adding `.dup` fixes the inconsistency
<oprypin>
lbarasti, i think there were isses brought up many many times that `StaticArray#to_slice` is very very unsafe and should be clearly marked as such
<oprypin>
staticarray resides on the stack and as soon as you exit the scope the memory is not reserved to it anymore . but the slice keeps pointing to the same memory
<FromGitter>
<lbarasti> ouch! Thanks oprypin, good to narrow down the issue to `StaticArray#to_slice`, I can now go and remove a bunch of unnecessary `.dup` :D
<FromGitter>
<asterite> we should probably rename it to to_unsafe_slice
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
<FromGitter>
<Blacksmoke16> `acc` and `val` prob get set to a union of the possible types in the array which messes things up
<FromGitter>
<asterite> this is your daily reminder to not use named tuples
deavmi has joined #crystal-lang
<FromGitter>
<kingsleyh> What’s the deal with names Tuples
<FromGitter>
<straight-shoota> > this is your daily reminder to not use named tuples ⏎ ⏎ @asterite Made my day =)
<FromGitter>
<asterite> they represent named arguments. That's all. If you are using them for something else, you are using them in the wrong way, and it's almost guaranteed you'll have a bad time unless you use them for the simplest things
DTZUZU has joined #crystal-lang
<FromGitter>
<straight-shoota> Bottom line: For every use case of named tuples except named arguments, it's better to use structs
<yxhuvud>
often in the form of Records.
f1reflyylmao has quit [Quit: bye fags]
f1refly has joined #crystal-lang
DTZUZU_ has joined #crystal-lang
DTZUZU has quit [Ping timeout: 258 seconds]
DTZUZU has joined #crystal-lang
DTZUZU_ has quit [Ping timeout: 272 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
_whitelogger has joined #crystal-lang
sagax has quit [Read error: Connection reset by peer]