admin1234 has quit [Ping timeout: 265 seconds]
admin1235 has joined #ruby
livoreno has joined #ruby
<
leftylink>
"and what happens if you assign a to a with a undefined? correct! nil. wat."
admin1235 has quit [Ping timeout: 252 seconds]
MsInput has joined #ruby
admin1234 has joined #ruby
admin1234 has quit [Ping timeout: 252 seconds]
TomyWork has quit [Remote host closed the connection]
guest-12423 has joined #ruby
admin1234 has joined #ruby
<
guest-12423>
havenwood: disconnected automatically but I read what you wrote about 'bareword' and how it works. That would explain it
<
guest-12423>
thanks
admin1234 has quit [Ping timeout: 252 seconds]
<
havenwood>
foo = foo if foo
<
havenwood>
^ foo gets added to the local table, but no value is assigned.
<
havenwood>
A quirk, but not a bug.
<
havenwood>
(Same thing o0x1eef was showing.)
admin1234 has joined #ruby
admin1234 has quit [Ping timeout: 252 seconds]
admin1234 has joined #ruby
admin1234 has quit [Ping timeout: 244 seconds]
brw has joined #ruby
Linux_Kerio has joined #ruby
Linux_Kerio has quit [Read error: Connection reset by peer]
CRISPR has joined #ruby
brokkoli_origin has quit [Ping timeout: 276 seconds]
livoreno has quit [Quit: Connection closed for inactivity]
brokkoli_origin has joined #ruby
Fridtjof has joined #ruby
hwpplayer1 has joined #ruby
o0x1eef has quit [Ping timeout: 252 seconds]
CRISPR has quit [Quit: WeeChat 3.8]
admin1234 has joined #ruby
grenierm has joined #ruby
<
nakilon>
you can do just: foo = foo, without if
admin1234 has quit [Ping timeout: 276 seconds]
admin1234 has joined #ruby
admin1234 has quit [Changing host]
admin1234 has joined #ruby
<
havenwood>
nakilon: I was hoping to show the `foo = foo` doesn't happen.
<
havenwood>
It's just parsed, not run.
<
havenwood>
`foo = foo if false` works too, the point of the `if foo` is to show that when in local table, it's `nil`, which is falsey.
<
havenwood>
An oddity.
<
havenwood>
Showing `foo = foo` does show the same thing, it just doesn't even have to run even.
hwpplayer1 has quit [Remote host closed the connection]
R2robot has quit [Quit: Pull the lever, Kronk. Wrong leverrrrrrr!]
R2robot has joined #ruby
admin1234 has quit [Ping timeout: 244 seconds]
admin1234 has joined #ruby
sarna has quit [Remote host closed the connection]
sarna has joined #ruby
admin1234 has quit [Ping timeout: 248 seconds]
admin1234 has joined #ruby
konsolebox has joined #ruby
admin1234 has quit [Quit: Lost terminal]
<
leftylink>
pandabot: what's correct nil wat
livoreno has joined #ruby
grenierm has quit [Ping timeout: 240 seconds]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
rvalue- has joined #ruby
rvalue has quit [Ping timeout: 264 seconds]
rvalue- is now known as rvalue
<
ih8u>
any mruby people in here?
livoreno has quit [Quit: Connection closed for inactivity]
konsolebox has quit [Ping timeout: 240 seconds]
user71 has joined #ruby
MsInput has quit [Quit: WeeChat 4.4.4]
konsolebox has joined #ruby
hwpplayer1 has joined #ruby
cappy has joined #ruby
konsolebox has quit [Ping timeout: 265 seconds]
MyNetAz has quit [Read error: Connection reset by peer]
MyNetAz has joined #ruby
livoreno has joined #ruby