[#68137] improve semantics of manpages — "Anthony J. Bentley" <anthony@...>
Hi,
1 message
2015/02/17
[#68144] Re: Future of test suites for Ruby — Anthony Crumley <anthony.crumley@...>
FYI...
4 messages
2015/02/17
[#68343] [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault? — ruby@...
Issue #10916 has been reported by why do i need this acct just to create a bug report.
5 messages
2015/02/27
[#68373] Re: [Ruby trunk - Bug #10916] [Open] What the Ruby? SegFault?
— "Martin J. Dürst" <duerst@...>
2015/03/02
> * Author: why do i need this acct just to create a bug report
[#68358] [Ruby trunk - Bug #10902] require("enumerator") scans LOAD_PATH 2x on every invocation — ruby@...1.net
Issue #10902 has been updated by Aman Gupta.
3 messages
2015/02/28
[ruby-core:68109] [Ruby trunk - Feature #10851] [Open] Introduce Regexp#fetch
From:
prijutme4ty@...
Date:
2015-02-13 11:15:18 UTC
List:
ruby-core #68109
Issue #10851 has been reported by Ilya Vorontsov. ---------------------------------------- Feature #10851: Introduce Regexp#fetch https://bugs.ruby-lang.org/issues/10851 * Author: Ilya Vorontsov * Status: Open * Priority: Normal * Assignee: ---------------------------------------- There is a common pattern in code: match = pattern.match(string) var = match && match[name_of_capture] One should write it everywhere not to get an exception. It can be solved by introducing something like Hash#fetch. class Regexp def fetch(string, capture_name:, pos: nil, default_value: nil) m = match(string, pos) m ? m[capture_name] : default_value end end -- https://bugs.ruby-lang.org/