[ruby-core:73429] Re: [Ruby trunk - Bug #11822] Semantics of Queue#pop after close are wrong

From: Andrew Vit <andrew@...>
Date: 2016-01-25 18:21:41 UTC
List: ruby-core #73429
On 2015-12-20 12:54 AM, funny.falcon@gmail.com wrote:
> I like optional arg to pop:
> Either `pop?` or `pop(on_close: value)`

Another possibility is a default proc similar to how Hash#fetch 
interface works.

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next