General

Profile

lucasbuchala (Lucas Buchala)

  • Login: lucasbuchala
  • Registered on: 02/16/2016
  • Last sign in: 03/23/2019

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/07/2018

11:43 AM Ruby Feature #14844: Future of RubyVM::AST?
Hello. Sorry to step in with a frivolous suggestion, but I just noticed the name `RubyVM::AbstractSyntaxTree` in the RC1 announcement and was surprised by the length of the word when the shorter name "AST" would suffice.
mame (Yusuke ...
lucasbuchala (Lucas Buchala)

07/24/2018

05:13 PM Ruby Bug #14935: Inconsitent behaviour with puts and enumerator with different block format.
I think this is because `do ... end` blocks has lower precedence than `{...}` blocks. As documented in [1]. So, probably, not a bug.
~~~
method1 method2 { ... } # method2's block
method1 method2 do ... end # method1's block
~~...
lucasbuchala (Lucas Buchala)

05/19/2018

03:50 PM Ruby Feature #14777: Add Range#offset ?
Hello. I don't have any strong opinion about this feature, but I guess I would welcome such feature if it used standard operators. After seeing this issue, I remembered that I have tried this in the past, so I'm just sharing a snippet to... lucasbuchala (Lucas Buchala)

08/31/2017

04:45 PM Ruby Bug #13855: Hash#compact! returns nil if the hash is empty
Rather than a bug, I wonder if this is just a documentation omission.
In case of a documentation omission, I created a PR:
https://github.com/ruby/ruby/pull/1692
lucasbuchala (Lucas Buchala)

12/19/2016

01:20 PM Ruby Bug #13051 (Closed): Object created with ARGF.class.new fails to update .lineno in .each
I don't know if this way of creating ARGF-like objects is supported or not.
I just noticed that it didn't update the `.lineno` when used in `.each`.
Consider the example input file:
~~~
$ cat file1
foo
bar
baz
~~~
The foll...
lucasbuchala (Lucas Buchala)

08/28/2016

10:39 PM Ruby Bug #12710: "a string X".index("a string") Fails with Ruby 2.2.3p173
Isn't there a newline character at the end of string returned by shell quotes?
I think that's the reason the .index method will not find the substring.
If you don't want the newline, you can do something like:
~~~
`cmd ...`.chomp...
lucasbuchala (Lucas Buchala)

02/17/2016

11:21 PM Ruby Feature #9969: Add File.empty? as alias to File.zero?
I added a comment on issue #10121 before knowing this specific issue already existed.
I just wanted to say that, with the arrival of Dir.empty?, I like the idea of the File.empty? alias for the reason of having some symmetry between D...
lucasbuchala (Lucas Buchala)
01:58 PM Ruby Feature #10121: Dir.empty?
Now that Ruby got a Dir.empty? method, do you think it makes sense to add a File.empty? as an alias for File.zero? ?
(I didn't know if it was worth opening a new issue for this simple suggestion, so I just appended it here, since I se...
lucasbuchala (Lucas Buchala)

Also available in: Atom