General

Profile

eike.rb (Eike Dierks)

  • Login: eike.rb
  • Email: eike@inter.net
  • Registered on: 03/28/2012
  • Last sign in: 04/05/2018

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 8 17 25

Activity

04/06/2018

02:24 AM Ruby Feature #14666: nil.any?{} should return false
I fully aggree with all the commenters.
It boils down to if nil should be Enumerable.
Obviously it should be not. because nil is special.
But then nil means "not in list" or the empty list or the not existing list?
I know this ...
eike.rb (Eike Dierks)

04/05/2018

11:06 PM Ruby Feature #14666 (Rejected): nil.any?{} should return false
Hi everyone at ruby/trunk
I encountered `nil.any?`
```
undefined method `any?' for nil:NilClass (NoMethodError)
```
I fully agree with all of yours,
that `nil` should be kept slim.
But than, on the other hand,
the existen...
eike.rb (Eike Dierks)

11/21/2017

02:19 AM Ruby Feature #14122 (Open): Add LogicError
Dear friends at ruby
I'd like to suggest a new error for ruby-core: LogicError
That error should be thrown
upon operations that are detected to be illogic or impossible by semantics.
I believe that this could improve the error me...
eike.rb (Eike Dierks)

11/17/2017

12:51 AM Ruby Feature #14114 (Open): Add #step for Array, Enumerable, Enumerator
This must have been discussed before,
please reassigned and close this one.
I want to propose an extension to the ruby core api:
- add #step(n) for Enumerable, Enumerator
- coerce the step() api across all the api (see Numeric#step...
eike.rb (Eike Dierks)

03/19/2017

10:52 PM Ruby Feature #13332 (Feedback): Forwardable#def_instance_delegator nil
I'd like to suggest an extension to the signature of stdlib Forwardable#def_instance_delegator
currently (ruby 2.3.3) it is declared as:
```ruby
def_instance_delegator(accessor, method, ali = method)
```
I'd like to add a ni...
eike.rb (Eike Dierks)

02/23/2017

03:22 AM Ruby Feature #13244 (Rejected): stdlib/Logger: add option: level
I'd like to suggest
to enhance the interface of stdlib/logger
The #new method should allow for an option to set the log level:
~~~ruby
Logger#new(logdev, level:'WARN')
~~~
As with ruby 2.4 there is no provision to set the log...
eike.rb (Eike Dierks)

08/17/2016

07:06 PM Ruby Bug #12685 (Closed): malloc error: pointer being freed was not allocated
ruby crashed
- never seen that before
- should never happen
- looks serious to me
I'm using ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] from macports
I was running rails in dev mode.
The bug happened while rel...
eike.rb (Eike Dierks)

07/24/2016

11:36 PM Ruby Feature #12625 (Open): TypeError.assert, ArgumentError.assert
I am well aware that ruby is not typed (and so for a good reason)
But sometimes it makes sense to check the types (or values) of arguments upfront.
(It actually helps to narrow down your arguments to the known)
I'd like to suggest...
eike.rb (Eike Dierks)
10:02 PM Ruby Feature #12624 (Rejected): !== (other)
I'd like to suggest a new syntactic feature.
There should be an operator `!==`
which should just return the negation of the `===` operator
### aka:
```ruby
def !==(other)
! (self === other)
end
```
### Rationale:
T...
eike.rb (Eike Dierks)

06/15/2016

08:19 PM Ruby Feature #12482: ArgumentError.new(nil) should give a better description
OK, that change would break the spec.
I do understand that breaking the spec something that we rarely want to do.
I found a workaround:
ArgumentError.new([arg]) # wrap arg in Array to give a better error message when arg is nil
...
eike.rb (Eike Dierks)

Also available in: Atom