You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
irb should not require standard libraries by default (if possible) #143
Etc is defined not in core API but in standard library. So Ruby does not require it by default, but irb does in Ruby 2.7. This inconsistent behavior confuses newbies. Actually I was asked such a question today.
As far as I investigated, irb requires some other libraries like fileutils, set and so on. But I think irb should run in the same context as plain script, if possible.
IRB as a development tool needs to prioritise features that increase developer productivity and happiness, with some of them inevitably rely on standard libraries or even bundled gems to implement. For example, the default REPL now requires Reline and RDoc for autocompletion.
It's not possible nor practical to rewrite or even drop features to simply "make IRB sessions cleaner". So I'm closing it now.
Activity
rubyFeedback commentedon Jan 3, 2021
I sort of agree with JunichiIto; IRB should ideally be as close as possible to "default" ruby behaviour, as-is.
People can customize the behaviour via irbrc, which I do too - my irbrc contains lots of load-ruby-code
behaviour. :)
sos4nt commentedon Dec 6, 2022
Setseems to be required by RubyGems, or more specifically, by its Molinillo dependency resolver:lib/rubygems/resolver/molinillo/lib/molinillo/dependency_graph/vertex.rb#L158
st0012 commentedon Oct 25, 2023
IRB as a development tool needs to prioritise features that increase developer productivity and happiness, with some of them inevitably rely on standard libraries or even bundled gems to implement. For example, the default REPL now requires
RelineandRDocfor autocompletion.It's not possible nor practical to rewrite or even drop features to simply "make IRB sessions cleaner". So I'm closing it now.