sandra has quit [Remote host closed the connection]
noahmg123 has quit [Server closed connection]
noahmg123 has joined #ruby
infinityfye has joined #ruby
infinityfye__ has quit [Ping timeout: 252 seconds]
sandra has joined #ruby
jmcantrell has joined #ruby
<havenwood>
nakilon: While it's not technically reserved, `_` has special meaning in IRB and will overwrite your `_` if you `binding.irb` in so I'd avoid it.
<havenwood>
By convention, it also means "unused" to prefix with `_`.
<havenwood>
In latest stable, `map { it }` or in whatever supported Ruby `map { _1 }` instead. (Yeah, _1 not following the convention is weird as heck, but it's *mostly* replaced by `it` outside of `_1` with `_2` usage.)
<havenwood>
A Struct or Data are indeed smaller than a two element Array. A `require 'objspace'` and `ObjectSpace.memsize_of` is handy for checking.
<havenwood>
Twice the iterations, twice as fast. Object churn is expensive at scale.
chair1 has joined #ruby
pavelz has quit [Server closed connection]
pavelz has joined #ruby
FetidToot0 has joined #ruby
FetidToot has quit [Ping timeout: 248 seconds]
FetidToot0 is now known as FetidToot
user71 has quit [Quit: Leaving]
hombrelaser has quit [Server closed connection]
hombrelaser has joined #ruby
TomyLobo has joined #ruby
grenierm has joined #ruby
infinityfye has quit [Read error: Connection reset by peer]
sh7d has quit [Quit: Leaving]
andy-turner_ has quit [Quit: Leaving]
ruby[bot] has quit [Remote host closed the connection]