jhass[m] changed the topic of #ruby to: Rules: https://ruby-community.com | Ruby 3.1.2, 3.0.4, 2.7.6: https://www.ruby-lang.org | Paste 4+ lines to: https://gist.github.com | Books: https://goo.gl/wpGhoQ
<leftylink> pandabot: rb class Foo; def self.bar(x) "bar #{x}" end end; def doit(&f) f[5] end; doit(&Foo.method(:bar))
<pandabot> "bar 5" - https://carc.in/#/r/dhc0
<leftylink> hopefully the working example can be used to compare against the non-working example, and the differences can reveal why it isn't working.
<leftylink> I gues it's not a 100% faithful reproduction of the questoin as asked though, so I'll make a more faithful reproduction
<leftylink> pandabot: rb class Foo; def self.bar(x) "bar #{x}" end end; def doit(y, &f) f[y] end; doit(5, &Foo.method(:bar))
<pandabot> "bar 5" - https://carc.in/#/r/dhc1
<leftylink> okay, that should be faithful to the question
taiju has joined #ruby
matoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
matoro has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
jl- has quit [Ping timeout: 260 seconds]
<Zerock> leftylink: I was able to find a slight difference. thanks a lot :D
_ht has quit [Ping timeout: 244 seconds]
markong has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
axisys has joined #ruby
keb has quit [Ping timeout: 276 seconds]
moldorcoder7 has quit [Ping timeout: 272 seconds]
_ht has quit [Ping timeout: 272 seconds]
_ht has joined #ruby
howdoi has quit [Quit: Connection closed for inactivity]
Aminda has quit [Remote host closed the connection]
aeris has quit [Remote host closed the connection]
Aminda has joined #ruby
aeris has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
Linux_Kerio has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 255 seconds]
Rounin has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
John_Ivan_ has joined #ruby
arfy8820 has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
arfy has quit [Ping timeout: 268 seconds]
arfy8820 is now known as arfy
Ziyan has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
Ziyan has joined #ruby
polishdub has quit [Ping timeout: 272 seconds]
polishdub has joined #ruby
Ziyan has quit [Ping timeout: 240 seconds]
Ziyan has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
gr33n7007h has joined #ruby
<tsujp> Well seasoned Rubyists. I'm looking to make a little language inspired by Ruby's syntax. What are some (non-super-obscure) quirks about Ruby's syntax you might share with me that you wish weren't so?
jl- has joined #ruby
jpn has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 244 seconds]
jpn has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
taiju has quit [Ping timeout: 240 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
Ziyan has quit [Ping timeout: 255 seconds]
Ziyan has joined #ruby
libsys has quit [Ping timeout: 244 seconds]
libsys has joined #ruby
jpn has joined #ruby
aeris has quit [Remote host closed the connection]
Aminda has quit [Remote host closed the connection]
aeris has joined #ruby
Aminda has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
aeris has quit [Remote host closed the connection]
aeris has joined #ruby
teclator has joined #ruby
nirvdrum has quit [Quit: nirvdrum]
arahael has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
Ziyan has quit [Ping timeout: 276 seconds]
Ziyan has joined #ruby
bougyman has quit [Remote host closed the connection]
bougyman has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
jl- has joined #ruby
jl- has quit [Ping timeout: 272 seconds]
Ziyan has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
<jhass[m]> constructs which are the same except for the precedence (&& and `and`). Just pick one
<jhass[m]> not quite syntax, but non-global globals (`$~`), just work with return values
jpn has joined #ruby
<jhass[m]> Nobody actually needs the flip-flop operator or regex capture group to local variable promotion (again on the blurry line between feature and syntax, I realize)
taiju has joined #ruby
<jhass[m]> I don't know, probably a lot of similar things. Check Crystal, they've gone this path before. https://github.com/crystal-lang/crystal/wiki/Crystal-for-Rubyists
<jhass[m]> some of these differences are due to limitations in a compiled environment, but some are also cleaning up ambiguity within Ruby
jpn has quit [Ping timeout: 268 seconds]
Ziyan has quit [Ping timeout: 272 seconds]
Ziyan has joined #ruby
Sankalp has joined #ruby
ur5us has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan_ has joined #ruby
jpn has joined #ruby
SteveR has joined #ruby
Jonopoly has joined #ruby
dionysus69 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
TomyWork has joined #ruby
Jonopoly has quit [Quit: WeeChat 3.0]
Jonopoly has joined #ruby
SteveR has quit [Quit: Client closed]
jl- has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
_aeris_ has joined #ruby
aeris has quit [Ping timeout: 268 seconds]
Ziyan has joined #ruby
_aeris_ is now known as aeris
Ziyan_ has quit [Ping timeout: 260 seconds]
Sankalp has quit [Ping timeout: 268 seconds]
Sankalp has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 244 seconds]
Ziyan_ has quit [Read error: Connection reset by peer]
Ziyan has joined #ruby
keb has joined #ruby
taiju has quit [Ping timeout: 244 seconds]
markong has joined #ruby
Rounin has joined #ruby
moldorcoder7 has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
Jonopoly has quit [Quit: WeeChat 3.0]
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
agent_white has quit [Remote host closed the connection]
abws has joined #ruby
twosuns has joined #ruby
twosuns has quit [Client Quit]
ur4ltz has quit [Ping timeout: 255 seconds]
jpn has quit [Ping timeout: 244 seconds]
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
jpn has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
perrierjouet has quit [Quit: WeeChat 3.5]
perrierjouet has joined #ruby
nirvdrum has joined #ruby
protektwar has quit [Ping timeout: 255 seconds]
jpn has joined #ruby
nirvdrum has quit [Read error: Connection reset by peer]
jpn has quit [Ping timeout: 240 seconds]
reset has quit [Quit: reset]
jpn has joined #ruby
taiju has joined #ruby
aeris has quit [Quit: ZNC - http://znc.sourceforge.net]
jl- has joined #ruby
aeris has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
dionysus69 has quit [Quit: dionysus69]
<adam12> Nested constant definition seems to catch a lot of people.
_aeris_ has joined #ruby
<adam12> And I recently read an article about requiring parens for method calls receiving arguments.
aeris has quit [Remote host closed the connection]
_aeris_ is now known as aeris
dionysus69 has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
Ziyan has joined #ruby
Ziyan has quit [Quit: Textual IRC Client: www.textualapp.com]
Ziyan has joined #ruby
Ziyan_ has joined #ruby
Ziyan has quit [Ping timeout: 268 seconds]
cocalero has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #ruby
jpn has joined #ruby
protektwar has joined #ruby
protektwar has quit [Changing host]
protektwar has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 255 seconds]
nirvdrum has joined #ruby
markong has quit [Ping timeout: 272 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
abws has quit [Ping timeout: 276 seconds]
gr33n7007h has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 276 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
nirvdrum_ has joined #ruby
nirvdrum has quit [Ping timeout: 264 seconds]
Aminda has quit [Remote host closed the connection]
Aminda has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
protektwar has quit [Ping timeout: 255 seconds]
cocalero_ has joined #ruby
gr33n7007h has quit [Ping timeout: 255 seconds]
___nick___ has joined #ruby
gr33n7007h has joined #ruby
cocalero has quit [Ping timeout: 268 seconds]
cocalero_ is now known as cocalero
gr33n7007h has quit [Ping timeout: 272 seconds]
gr33n7007h has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 244 seconds]
taiju has quit [Ping timeout: 264 seconds]
gr33n7007h has quit [Ping timeout: 268 seconds]
gr33n7007h has joined #ruby
teclator has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
gr33n7007h has quit [Ping timeout: 264 seconds]
gr33n7007h has joined #ruby
gr33n7007h has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 272 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #ruby
___nick___ has quit [Client Quit]
___nick___ has joined #ruby
cocalero has quit [Quit: Going offline, see ya! (www.adiirc.com)]
TomyWork has quit [Quit: Leaving]
foxxesStar has quit [Remote host closed the connection]
TomyWork has joined #ruby
matoro has quit [Quit: ZNC 1.8.2 - https://znc.in]
matoro has joined #ruby
matoro has joined #ruby
matoro has quit [Changing host]
fef has joined #ruby
jl- has joined #ruby
jl- has quit [Ping timeout: 268 seconds]
TomyWork has quit [Quit: Leaving]
nirvdrum_ has quit [Quit: nirvdrum_]
fef has quit [Quit: Killer]
_ht has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 276 seconds]
jpn has quit [Ping timeout: 240 seconds]
nirvdrum has joined #ruby
Vonter has quit [Ping timeout: 240 seconds]
nirvdrum has quit [Quit: nirvdrum]
nirvdrum has joined #ruby
jpn has joined #ruby
Ziyan_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Starfoxxes has joined #ruby
jl- has joined #ruby
jpn has quit [Ping timeout: 272 seconds]
Linux_Kerio has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 268 seconds]
markong has joined #ruby
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
jpn has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
nirvdrum has quit [Quit: nirvdrum]
jpn has quit [Ping timeout: 276 seconds]
jl- has quit [Ping timeout: 244 seconds]
jpn has joined #ruby
jpn has quit [Ping timeout: 244 seconds]
John_Ivan_ has quit [Quit: Leaving]
jpn has joined #ruby
jpn has quit [Ping timeout: 276 seconds]
cynosures4 has joined #ruby
John_Ivan has joined #ruby
cynosures4 has quit [Ping timeout: 272 seconds]
jl- has joined #ruby
keb has quit [Ping timeout: 276 seconds]