General

Profile

zverok (Victor Shepelev)

Issues

Activity

12/04/2017

11:35 AM Ruby trunk Feature #14145: Proposal: Better Method#inspect
ko1 (Koichi Sasada) wrote:
> I don't have strong opinions on your proposal, but source location information seems al...

11/30/2017

03:41 PM Ruby trunk Feature #14145: Proposal: Better Method#inspect
@shevegen
> However had, in that particular case that you showed above, I would personally not want it.
Just curi...
10:42 AM Ruby trunk Feature #14145 (Open): Proposal: Better Method#inspect
The idea: When investigating (in example scripts, debugger or console) the library you are unfamiliar with, Ruby's re...

11/25/2017

02:00 PM Ruby trunk Bug #14130 (Open): Keyword arguments are ripped from the middle of hash if argument have default value
Here is the code:
```ruby
def test1(source = {}, **opts)
puts "SOURCE: #{source}, OPTS: #{opts}"
end
def t...

11/06/2017

10:57 AM Ruby trunk Bug #14086: Interpreter seems to sneak in a nil value when a comma is missing on a nested array wrapped in parenthesis
> is this the expected behaviour?
Yes.
Try this:
```ruby
[2, 2][3, 3] # => nil
```
Why?
Because it is re...

10/31/2017

11:42 AM Ruby trunk Feature #10183: An alternative name for method `class`
BTW, I'd rather have some special syntax for generic case "want to use local name, but it is keyword". For example (s...
11:38 AM Ruby trunk Feature #10183: An alternative name for method `class`
> My guess is that self.class mostly appears in the context of metaprogramming.
Why? In simple inheritance, you ma...

10/18/2017

09:10 AM Ruby trunk Feature #14022: String#surround
+1 for that (and exactly for the method chains).
Always define `String#surround` in my internal projects.

10/10/2017

09:57 AM Ruby trunk Bug #13992: Strange behaviour for kernel#integer method
Just in plain Ruby, it is the same (but error message is more informative):
```ruby
09
# SyntaxError: (irb):3: I...
09:55 AM Ruby trunk Bug #13992: Strange behaviour for kernel#integer method
Yes, it does. Leading zero designates octal number (base 8), which can't have digit "8" in it.

Also available in: Atom