havenwood changed the topic of #ruby to: Ruby 3.4.3, 3.3.8 https://www.ruby-lang.org | Log https://libera.irclog.whitequark.org/ruby
SaveFerris13 has joined #ruby
SaveFerris1 has quit [Ping timeout: 276 seconds]
SaveFerris13 is now known as SaveFerris1
R2robot has quit [Quit: Pull the lever, Kronk. Wrong leverrrrrrr!]
R2robot has joined #ruby
<o0x1eef> It's a feature, not a bug: require 'active_support' may fail :D
<o0x1eef> Seriously though, that sounds very cool
oznek has quit [Remote host closed the connection]
_whitelogger has joined #ruby
cappy has quit [Quit: Leaving]
user23 has quit [Remote host closed the connection]
fercell has quit [Quit: ZNC - https://znc.in]
fercell has joined #ruby
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 248 seconds]
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #ruby
wbooze has quit [Read error: Connection reset by peer]
kerzhak_ has joined #ruby
kerzhak has quit [Remote host closed the connection]
kerzhak_ is now known as kerzhak
CRISPR has joined #ruby
CRISPR has quit [Ping timeout: 268 seconds]
dionysus69 has joined #ruby
jmcantrell has quit [Ping timeout: 265 seconds]
CRISPR has joined #ruby
DraculaMAN has joined #ruby
DraculaMAN has quit [Read error: Connection reset by peer]
Linux_Kerio has joined #ruby
CRISPR has quit [Ping timeout: 276 seconds]
crespire1 has joined #ruby
crespire has quit [Killed (NickServ (GHOST command used by crespire1))]
ssh0732 has quit [Quit: The Lounge - https://thelounge.chat]
peder has quit [Read error: Connection reset by peer]
ssh0732 has joined #ruby
GreenResponse has joined #ruby
pookie has quit [Remote host closed the connection]
CRISPR has joined #ruby
CRISPR has quit [Ping timeout: 272 seconds]
EIRK has joined #ruby
gemmaro has quit [Ping timeout: 260 seconds]
gemmaro has joined #ruby
Linux_Kerio has quit [Ping timeout: 248 seconds]
TomyWork has joined #ruby
<nakilon> yesterday spotted, that according to ruby --help, the truffleruby does not enable frozen_string_literals by default
<nakilon> that is nice, this feature is awful
<nakilon> but I would love to see some automatic freeze on the values obtained with attr_reader
<nakilon> or maybe freezing them inside initialize, hmmm
<nakilon> havenwood: I scrolled through but didn't find the namespaces within the object syntax, i.e. myobj.namespace.mtd
<nakilon> or is it irrelevant to what I was talking about recently
<nakilon> o0x1eef: active_betrayal
<o0x1eef> Lol
<havenwood> nakilon: An attr_reader doesn't expose itself as a special method on the Ruby side. You can introspect fancy ways, but the simple way is to define your own `frozen_attr_reader` or whatnot. You can write a C extension to tell, and could write a gem that exposes Method#attr_reader? I suppose but they're just regular methods from the Ruby side of
<havenwood> things.
<havenwood> I did expect Data members to be frozen. It's kinda funny they're also not exposed as Enumerable like a Struct.
<havenwood> The easiest way to free Data members is to use Data#deconstruct, which feels a bit odd.
<havenwood> deconstruct.each(&:freeze)
<havenwood> Alternatively, you can iterate through members.
eddof13 has joined #ruby
<havenwood> members.each { send(it).freeze }
<havenwood> It can be nice to do in an Data#initialize method. I think it would be reasonable to have a `freeze_members: true` option for Data.define.
<havenwood> You could also have a `frozen: true` for `attr_reader`, but you can also add your own when needed with super.
o0x1eef has quit [Quit: Quit]
user23 has joined #ruby
eddof13 has quit [Quit: eddof13]
CRISPR has joined #ruby
o0x1eef has joined #ruby
schne1der has quit [Quit: schne1der]
schne1der has joined #ruby
Thanzex025 has quit [Ping timeout: 244 seconds]
eddof13 has joined #ruby
oznek has joined #ruby
wbooze has joined #ruby
user71 has joined #ruby
CRISPR has quit [Ping timeout: 276 seconds]
Philip has joined #ruby
vigumnov has quit [Quit: ZNC 1.9.1 - https://znc.in]
dionysus69 has quit [Ping timeout: 252 seconds]
Philip has quit [Quit: Client closed]
svm has joined #ruby
msv has quit [Ping timeout: 272 seconds]
schne1der has quit [Ping timeout: 276 seconds]
schne1der has joined #ruby
wbooze has quit [Ping timeout: 248 seconds]
wbooze has joined #ruby
denvermullets has joined #ruby
denvermullets has quit [Ping timeout: 244 seconds]
phryk has quit [Remote host closed the connection]
Linux_Kerio has joined #ruby
jmcantrell has joined #ruby
jmcantrell has quit [Ping timeout: 252 seconds]
GreenResponse has quit [Quit: Leaving]
fantazo has joined #ruby
phryk has joined #ruby
phryk has quit [Remote host closed the connection]
phryk has joined #ruby
user23 has quit [Ping timeout: 265 seconds]
wbooze has quit [Quit: Leaving]
kerzhak has quit [Remote host closed the connection]
phryk has quit [Quit: ZNC 1.9.1 - https://znc.in]
kerzhak has joined #ruby
phryk has joined #ruby
eddof13 has quit [Quit: eddof13]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
eddof13 has joined #ruby
kerzhak has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
kerzhak has joined #ruby
crespire has joined #ruby
crespire1 has quit [Ping timeout: 260 seconds]
user71 has quit [Quit: Leaving]
phryk has quit [Quit: ZNC 1.9.1 - https://znc.in]
phryk has joined #ruby
weaksauce has joined #ruby
weaksauce has quit [Client Quit]
weaksauce has joined #ruby
cappy has joined #ruby
jmcantrell has joined #ruby
dstein64- has joined #ruby
dstein64 has quit [Ping timeout: 260 seconds]
dstein64- is now known as dstein64
o0x1eef has quit [Quit: Quit]
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
Linux_Kerio has quit [Ping timeout: 276 seconds]
jmcantrell has quit [Ping timeout: 265 seconds]
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
denvermullets has joined #ruby
o0x1eef has joined #ruby
Philip has joined #ruby
brokkoli_origin has quit [Remote host closed the connection]
brokkoli_origin has joined #ruby
eddof13 has quit [Quit: eddof13]
jmcantrell has joined #ruby
matoro has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
matoro has joined #ruby
denvermullets has quit [Ping timeout: 260 seconds]
dviola has quit [Ping timeout: 252 seconds]
diego has joined #ruby
diego is now known as Guest5203