Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Don't echo results of assignment expressions #11
This is a proof of concept for something I'd like to see added to irb. The ability for the interpreter to not echo results of assignment expressions.
I'm guessing this exact patch wouldn't be accepted because:
As to 1: I'm guessing irb and ruby have other ways of doing expression parsing that maybe could be hooked into instead of using the
For 2: Would a third value other than
Hi @hsbt. I understand not being able to use that third party dependency. That was just a starting point so I could show the intended behavior. I was hoping someone more knowledgeable about ruby and irb internals would be able to point me to another, more appropriate, internal, AST parser that I could use instead of the
I was hoping that my first implementation would spark discussion of how to properly do this.