General

Profile

uwe@kubosch.no (Uwe Kubosch)

  • Login: uwe@kubosch.no
  • Email: uwe@kubosch.no
  • Registered on: 11/28/2009
  • Last sign in: 04/02/2024

Issues

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

Activity

01/01/2018

07:41 PM Ruby Feature #9145: Queue#pop(true) return nil if empty instead of raising ThreadError
How about a block form where the block is called with the popped element? The method would return false if called with non_block set to true if the queue is empty.
q = Queue.new
q << 1
q << 2
q << 3
while q.pop(true){|x| p x}
uwe@kubosch.no (Uwe Kubosch)

11/13/2015

10:46 AM Ruby Feature #11537: Introduce "Safe navigation operator"
Yukihiro Matsumoto wrote:
> I think about this for a while, and thinking of introducing `&.` instead of `.?`, because:
> ...
I must say I am very happy with this change. "&." is much easier to read than ".?" .
uwe@kubosch.no (Uwe Kubosch)

Also available in: Atom