General

Profile

fxn (Xavier Noria)

  • Email: fxn@hashref.com
  • Registered on: 03/21/2010
  • Last connection: 01/25/2017

Issues

Activity

01/03/2017

07:12 PM Ruby trunk Feature #11547: remove top-level constant lookup
Ah, no, https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/57244/entry/variable.c#L419 seems to say ...
07:07 PM Ruby trunk Feature #11547: remove top-level constant lookup
Oh, didn't look at the patch. This means String::Hash returns nil?

01/01/2017

03:07 PM Ruby trunk Feature #11547: remove top-level constant lookup
In particular this one http://guides.rubyonrails.org/autoloading_and_reloading_constants.html#when-constants-aren-t-m...

11/14/2014

04:24 PM Ruby trunk Bug #10488: Consistency of Module#const_defined? and constant lookup
Regarding the first point, here `const_defined?` is consistent with `const_get`:
```ruby
X = 1
Module.new.const_...

10/06/2014

08:53 PM Ruby trunk Feature #9112: Make module lookup more dynamic (Including modules into a module after it has already been included)
+1 over here.
I remember I discovered this the hard-way extracting some code from Rails into a gem.
I believe t...

09/10/2014

10:32 AM Ruby trunk Feature #8923: Frozen nil/true/false
Hans Mackowiak wrote:
> i am unsure about toally freeze them ... some might extend/include some "Boolean" module int...

12/07/2013

01:57 AM Ruby trunk Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
@Guilherme
A predicate in Ruby can return any object. If the exact return value is documented, then the user of the ...

11/19/2013

08:49 PM Ruby trunk Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
This ticket is not about changing the semantics of the Ruby language. It is a ticket about a particular predicate.
C...
03:39 AM Ruby trunk Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
I wouldn't care. I use predicates as predicates
do_foo if x.zero?
also
do_bar if str =~ /.../
the =~ oper...
03:23 AM Ruby trunk Feature #9123: Make Numeric#nonzero? behavior consistent with Numeric#zero?
Both predicates return a boolean value, whose exact nature is irrelevant. I see no inconsistency to fix.
In my vie...

Also available in: Atom