Follow

apparently the variable _ is replaced by whatever last output was

@boots Yeah. I'm pretty sure Ruby's IRB would behave some kinda similar way just with different particulars. I bet you'd end up at Class or Module instead of 'string'.

@boots Yeah:

irb(main):001:0> _ = "hi"
=> "hi"
irb(main):002:0> _
=> "hi"
irb(main):003:0> _.class
=> String
irb(main):004:0> _.class
=> Class
irb(main):005:0> _
=> Class

Sign in to participate in the conversation
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!