I propose to remove the use of keyword `def` from the syntax of endless method definition, and introduce a new sigil instead of it. There are several possibilities for what character to use as the sigil, but the most seemingly promising ...sawa (Tsuyoshi Sawada)
I would like to point out a few syntax errors in the published description or expressions whose meaning most likely departs from what was actually intended. 1 > We will not give away your email address to anyone, who is not related to ...sawa (Tsuyoshi Sawada)
If displaying the instance is not important for a NoMethodError, then getting rid of it entirely may make it simpler. ```rb -e:1:in `<main>': undefined method `/' for Array instance (NoMethodError) (1..1e3).to_a/=3 ^...sawa (Tsuyoshi Sawada)
Do you intend the elided inspect form to be defined for each class, or should it be a result of simple string ellipsis on a fully expanded inspect string (e.g., take the first ten and last seventeen characters from inspection, as in your...sawa (Tsuyoshi Sawada)
Your description suggests a contrast between `to_int` and `to_i`, but while you showed a code example using `to_int`, you have not shown anything using `to_i`. Furthermore, actually replacing `to_int` in your code with `to_i` does not se...sawa (Tsuyoshi Sawada)
sawa (Tsuyoshi Sawada) wrote: > > > > You stated that you want &. to work on classes, but that does not make sense. If ActiveRecord::Base is not defined, it is not a class. How would Ruby know that it is (supposed to be) a class? p8 ...sawa (Tsuyoshi Sawada)
p8 (Petrik de Heus) wrote in #note-5: > > Furthermore, the specification you are asking for is not clear. What Exception classes do you want `&.` to rescue? > ... Then you should edit and write that in the description. > `defined?` ...sawa (Tsuyoshi Sawada)
It may be useful to allow a code block if that does not cause a trouble. ```rb require "my_module" NameSpace.new do self # => #<NameSpace:0x00...> require "my_module" MyModule.object_id != ::MyModule.object_id # => true end ```sawa (Tsuyoshi Sawada)
My understanding is that `./` and `../` in the given path argument are interpreted relative to: (1) * The current working directory (for `load` or `require`) * The requiring file's path (for `require_relative`) which shows a divi...sawa (Tsuyoshi Sawada)
Currently, you can do `ActiveRecord::Base.some_method rescue nil` Using `&.` for rescuing an error in addition to the current behavior would make it confusing. Furthermore, the specification you are asking for is not clear. What Except...sawa (Tsuyoshi Sawada)