donofrio__ has quit [Ping timeout: 240 seconds]
donofrio_ has joined #ruby
donofrio has quit [Ping timeout: 256 seconds]
donofrio_ has quit [Ping timeout: 256 seconds]
bhaak has joined #ruby
_whitelogger has quit [Remote host closed the connection]
_whitelogger_ has joined #ruby
jess_ has joined #ruby
jess has quit [Ping timeout: 606 seconds]
pages has joined #ruby
jess_ is now known as jess
advorak has quit [Ping timeout: 256 seconds]
fercell has joined #ruby
fercell_ has quit [Ping timeout: 256 seconds]
cappy has quit [Quit: Leaving]
donofrio has joined #ruby
advorak has joined #ruby
gaussianblue has quit [Quit: leaving]
advorak has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
xdminsy has quit [Quit: Konversation terminated!]
factor has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
donofrio has quit [Remote host closed the connection]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
konsolebox has quit [Max SendQ exceeded]
Linux_Kerio has joined #ruby
factor has joined #ruby
rvalue has quit [Ping timeout: 252 seconds]
dannyAAM has quit [Ping timeout: 268 seconds]
dannyAAM has joined #ruby
patrick_ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick_ is now known as patrick
patrick_ has joined #ruby
dviola has joined #ruby
xdminsy has joined #ruby
trillion_exabyte has quit [Ping timeout: 260 seconds]
trillion_exabyte has joined #ruby
grenierm has joined #ruby
patrick has quit [Ping timeout: 256 seconds]
patrick_ is now known as patrick
rvalue has joined #ruby
dannyAAM has quit [Ping timeout: 256 seconds]
patrick_ has joined #ruby
patrick has joined #ruby
patrick has quit [Changing host]
patrick_ is now known as patrick
patrick_ has joined #ruby
dannyAAM has joined #ruby
dannyAAM has quit [Ping timeout: 256 seconds]
konsolebox has joined #ruby
dannyAAM has joined #ruby
jmjl- has quit [Quit: ~nyaa]
jmjl has joined #ruby
dannyAAM has quit [Ping timeout: 260 seconds]
xdminsy has quit [Quit: Konversation terminated!]
dannyAAM has joined #ruby
jaredce has joined #ruby
trillion_exabyte has quit [Ping timeout: 268 seconds]
dannyAAM has quit [Ping timeout: 272 seconds]
trillion_exabyte has joined #ruby
dannyAAM has joined #ruby
Linux_Kerio has quit [Ping timeout: 268 seconds]
desnudopenguino has quit [Ping timeout: 260 seconds]
dannyAAM has quit [Ping timeout: 268 seconds]
grenierm has quit [Ping timeout: 250 seconds]
xdminsy has joined #ruby
dannyAAM has joined #ruby
Linux_Kerio has joined #ruby
advorak has joined #ruby
trillion_exabyte has quit [Ping timeout: 268 seconds]
trillion_exabyte has joined #ruby
advorak has quit [Ping timeout: 256 seconds]
Linux_Kerio has quit [Ping timeout: 256 seconds]
gaussianblue has joined #ruby
dannyAAM has quit [Ping timeout: 256 seconds]
dannyAAM has joined #ruby
dannyAAM has quit [Ping timeout: 256 seconds]
jaredce has quit [Ping timeout: 264 seconds]
jaredce has joined #ruby
gaussianblue has quit [Quit: leaving]
dannyAAM has joined #ruby
gaussianblue has joined #ruby
advorak has joined #ruby
xdminsy has quit [Read error: Connection reset by peer]
xdminsy has joined #ruby
advorak_ has joined #ruby
advorak has quit [Ping timeout: 272 seconds]
advorak__ has joined #ruby
advorak_ has quit [Ping timeout: 268 seconds]
dannyAAM has quit [Ping timeout: 260 seconds]
advorak_ has joined #ruby
advorak__ has quit [Ping timeout: 256 seconds]
<
adam12>
Wow. Where'd all those 3.3.2 changes come from. I felt like things had been quiet recently.
Linux_Kerio has joined #ruby
dannyAAM has joined #ruby
gaussianblue has quit [Quit: leaving]
stenno has joined #ruby
<
stenno>
good day, i understand that in ruby, 'operators' are basically just instance methods, e.g. 3.+(4) # 7
<
stenno>
now, what is '&&' ? it is not an instance method, and i cannot find the docs about it
<
stenno>
they are not operators, what are they? language constructs?
<
stenno>
can i therefore not override/overload && behaviour?
<
adam12>
stenno: They are Logical Operators. Ruby tokenizes them during parsing so they cannot be overloaded.
advorak__ has joined #ruby
<
stenno>
so they behave like javascript &&,|| in that they don't return boolean but the respective truthy/falsy expression
<
adam12>
That sounds right.
<
adam12>
You can overload & and |, so somepeople cheat and use those methods instead as a "look alike"
<
stenno>
do you have an idea why && and || behave like this in ruby as opposed to other operators?
<
adam12>
ie. Sequel. Sequel.from(:widgets).select { (:foo =~ "foo") & (:bar =~ "bar") }
<
adam12>
I'm not sure, tbh.
<
adam12>
(you can't overload == either, so you can see =~ as the look-alike in Sequel)
<
adam12>
err, you can overload ==. sorry.
<
stenno>
=~ is pattern matching, right?
<
adam12>
It is normally pattern matching, but in this case I believe it's overloaded by Sequel DSL.
<
stenno>
so the Sequel overloaded =~ and & in your example?
advorak_ has quit [Ping timeout: 268 seconds]
BayouGuru has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
crespire1 has joined #ruby
desnudopenguino has joined #ruby
BayouGuru has quit [Quit: Quitting...Bye!]
user71 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
hightower4 has joined #ruby
hightower3 has quit [Ping timeout: 260 seconds]
Arsen has quit [Quit: Quit.]
Arsen has joined #ruby
Arsen is now known as Guest8883
Guest8883 has quit [Client Quit]
kinduff has joined #ruby
dannyAAM has quit [Ping timeout: 260 seconds]
dannyAAM has joined #ruby
cappy has joined #ruby
Arsen has joined #ruby
Arsen is now known as Guest7470
Guest7470 has quit [Changing host]
Guest7470 has joined #ruby
Guest7470 is now known as Arsen
jaredce has quit [Ping timeout: 256 seconds]
jaredce has joined #ruby
jaredce has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby
havenwood has quit [Client Quit]
konsolebox has quit [Ping timeout: 255 seconds]
konsolebox has joined #ruby
havenwood has joined #ruby
Momentum has quit [Quit: WeeChat 4.1.1]
konsolebox_ has joined #ruby
konsolebox has quit [Ping timeout: 268 seconds]
advorak__ has quit [Ping timeout: 268 seconds]
dannyAAM has quit [Ping timeout: 268 seconds]
user71 has quit [Quit: Leaving]
stenno has quit [Ping timeout: 256 seconds]
stenno has joined #ruby
donofrio has joined #ruby
dannyAAM has joined #ruby
cappy has quit [Quit: Leaving]
patrick__ has joined #ruby
patrick has quit [Changing host]
patrick has joined #ruby
patrick__ is now known as patrick
gaussianblue has joined #ruby
patrick has quit [Ping timeout: 272 seconds]
patrick_ is now known as patrick
user71 has joined #ruby
johnjaye has joined #ruby
nmollerup has quit [Quit: Leaving]
johnjaye has quit [Ping timeout: 260 seconds]
johnjaye has joined #ruby
konsolebox_ has quit [Quit: .]
Vonter has quit [Ping timeout: 268 seconds]
Furai has quit [Quit: WeeChat 4.3.0]
Furai has joined #ruby
Furai has quit [Quit: WeeChat 4.3.0]
Furai has joined #ruby
Linux_Kerio has quit [Ping timeout: 264 seconds]
donofrio has quit [Ping timeout: 252 seconds]
user71 has quit [Quit: Leaving]
_whitelogger_ has quit [Ping timeout: 260 seconds]
_whitelogger has joined #ruby
cappy has joined #ruby
polishdub has quit [Ping timeout: 260 seconds]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
hightower3 has joined #ruby
hightower4 has quit [Ping timeout: 268 seconds]
brokkoli_origin has quit [Ping timeout: 260 seconds]
brokkoli_origin has joined #ruby
<
leftylink>
stenno: if && and || were methods, it would not be possible[1] to get short-circuiting for them
<
leftylink>
[1] well okay I guess it would be possible, but then rules would be inconsistent
weaksauce has joined #ruby
<
leftylink>
actually I haven't even checked the accuracy of that footnote. how would I implement such a thing
<
leftylink>
uh shit. I'm not sure how I'd do it other than to change the language to have non-strict eval like Haskell
<
leftylink>
okay maybe I'm going to revoke the footnote and just say it's not possible then
Pixi has quit [Quit: Leaving]
<
stenno>
okay i see, because the right hand operand (i.e. the method argument) would be evaluated before it would be passed to the function
Pixi has joined #ruby