adam12 changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.0.2, 2.7.4, 2.6.8: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
Rounin has quit [Ping timeout: 258 seconds]
weaksauce has joined #ruby
MachinShin_ has quit [Ping timeout: 245 seconds]
MachinShin_ has joined #ruby
mirko has joined #ruby
random-jellyfish has quit [Ping timeout: 256 seconds]
Guest11 has joined #ruby
<Guest11> How do I diagnose load error?
Guest11 has quit [Quit: Client closed]
SuperLag has quit [Ping timeout: 258 seconds]
SuperLag has joined #ruby
ur5us has quit [Ping timeout: 264 seconds]
jpw has joined #ruby
ur5us has joined #ruby
freeworld has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
hololeap has quit [Remote host closed the connection]
hololeap has joined #ruby
freeworld has quit [Ping timeout: 245 seconds]
freeworld has joined #ruby
teclator has joined #ruby
reset has quit [Quit: reset]
Guest7 has joined #ruby
ravan has joined #ruby
fercell has quit [Remote host closed the connection]
fercell has joined #ruby
ravan has left #ruby [Leaving]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
Guest7 has quit [Quit: Client closed]
ur5us has quit [Ping timeout: 264 seconds]
dviola has joined #ruby
TzilTzal has joined #ruby
Bounga has joined #ruby
TzilTzal has quit []
Bounga has quit [Remote host closed the connection]
markong has joined #ruby
peer has quit [Quit: owo]
Guest7 has joined #ruby
Guest7 has quit [Client Quit]
peer has joined #ruby
hololeap has quit [Ping timeout: 276 seconds]
royo25 has joined #ruby
jetchisel has joined #ruby
weaksauce has quit [Ping timeout: 258 seconds]
Oxfuxxx has quit [Quit: Never underestimate the power of the butt..[]X/O...ON. (Playst...i mean.. Pir@tA$$)]
gr33n7007h has quit [Quit: WeeChat 3.3]
Oxfuxxx has joined #ruby
Oxfuxxx has quit [Client Quit]
sharkee has quit [Remote host closed the connection]
royo25 has quit [Quit: Bye]
sagax has joined #ruby
mirko has quit [Remote host closed the connection]
crankharder has joined #ruby
swaggboi has quit [Remote host closed the connection]
markong has quit [Ping timeout: 260 seconds]
cAMP has quit [Quit: Reconnecting]
cAMP has joined #ruby
<nakilon> why there is elsif but no elsunless?
markong has joined #ruby
<leah2> from programming perl: "here is no elsunless though. This is generally construed as a feature."
<leah2> (but clojure calling it when-not instead of unless is a pet peeve of mine)
swaggboi has joined #ruby
_ht has joined #ruby
<nakilon> is it "when" instead of "if" in closure?
<nakilon> if there is no elsunless I don't see the point to have the elsif keyword in ruby at all
<nakilon> isn't it effectively the same as else if
<leah2> nakilon: if is two-sided, when is one-sided
<leah2> else if needs two end
<nakilon> oh indeed
<nakilon> so it's an extra keyword to just save one end...
<nakilon> and indentation if you don't want to write "end end" that I won't mind
Oxfuxxx has joined #ruby
swaggboi has quit [Ping timeout: 260 seconds]
swaggboi has joined #ruby
<leah2> else you have ugly indentation chains
<leah2> i dont see the problem with elsif :p
<leah2> many languages have it
TomyWork has joined #ruby
swaggboi has quit [Ping timeout: 260 seconds]
justHaunt has quit [Read error: Connection reset by peer]
justHaunt has joined #ruby
Oxfuxxx has quit [Quit: Never underestimate the power of the butt..[]X/O...ON. (Playst...i mean.. Pir@tA$$)]
crankharder has quit [Ping timeout: 260 seconds]
Inline has joined #ruby
BSaboia has quit [Quit: This computer has gone to sleep]
weaksauce has joined #ruby
markong has quit [Ping timeout: 260 seconds]
TomyWork has quit [Quit: Leaving]
crankharder has joined #ruby
aeris has quit [Remote host closed the connection]
_aeris_ has joined #ruby
_aeris_ is now known as aeris
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
swaggboi has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
crankharder has joined #ruby
<ox1eef> thank God there is no elsunless, thatd be a mess.
reset has joined #ruby
<rapha> lol
* rapha loves elsif and unless
<adam12> I'm almost always against `unless` _unless_ it's postfixed.
<rapha> perhaps logically pointless but practically often useful
<rapha> well, _exactly_ for that purpose
<adam12> And if it includes more than one conditional, nope.
<rapha> oh so very true
* rapha blushes and finds some place to hide
_ht has quit [Remote host closed the connection]
<adam12> I don't need mental gymnastics trying to think about all the different conditions that could happen, and then negate them. Eesh.
* rapha doesn't need mental gymnastics at all, because he already has programming
<ox1eef> adam12: i feel the same, id go even further and say it should be removed, it is only useful in that certain context you describe
<weaksauce> i really dislike unless for all but the simplest cases
<weaksauce> and if there is a branch fuck that noise
<weaksauce> but i grew up with C so yeah
Munto has quit [Ping timeout: 260 seconds]
<ox1eef> i think Go had the right idea on this one, where it only has for to loop.
<weaksauce> and unless is bullshit if you have more than one predicate
<ox1eef> it really works for a case "do_this unless that" where it can read like plain english but full of pitfalls i dont like too
<weaksauce> yeah
<weaksauce> guard statements it works well for
<ox1eef> true
Munto has joined #ruby
BSaboia has joined #ruby
Guest19 has joined #ruby
Guest19 has quit [Client Quit]
<newton> +1 rarely use unless outside of guards
<newton> i think rubocop isn't fond of it either
ur5us has joined #ruby
Rounin has joined #ruby
crankharder has quit [Ping timeout: 252 seconds]
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Rounin has quit [Ping timeout: 260 seconds]
<nakilon> rubocop isn't a programmer
<newton> wrote itself, i guess
freeworld has quit [Ping timeout: 260 seconds]
jetchisel has quit [Quit: Unfortunately time is always against us -- [Morpheus]]
bastienleonard has joined #ruby
bastienleonard has quit [Client Quit]
bastienleonard has joined #ruby
teclator has joined #ruby
bastienleonard has quit [Quit: WeeChat 3.3]
ur5us has quit [Ping timeout: 264 seconds]