Nathan Broadbent

  • Email:
  • Registered on: 10/28/2012
  • Last connection: 07/15/2014

Activity

Reported issues: 6

07/16/2014

08:54 PM Ruby trunk Feature #10040: `%d` and `%t` shorthands for `Date.new(*args)` and `Time.new(*args)`
> Nathan, Date is only available in stdlib (maybe it should be moved to core) so I don't think those literals will wo...
06:09 AM Ruby trunk Feature #10040: `%d` and `%t` shorthands for `Date.new(*args)` and `Time.new(*args)`
Nobuyoshi Nakada wrote:
> I don't think there is possibilities to introduce `%d` and `%i`, especially using variable...

07/15/2014

08:30 PM Ruby trunk Feature #10040 (Feedback): `%d` and `%t` shorthands for `Date.new(*args)` and `Time.new(*args)`
I'm working on a Ruby application where we have to deal with a lot of dates and times, especially in our test suite. ...

01/25/2013

03:53 AM Ruby trunk Feature #7739: Define Hash#| as Hash#reverse_merge in Rails
I would personally love a more concise way to merge/reverse_merge hashes. Would you also propose Hash#& as merge?
...

11/20/2012

04:29 AM Ruby trunk Feature #7388: Object#embed
>
> I'd even say that `embed` is wrong.
>
> I would like to know of a good example of use case. I often succum...

11/18/2012

11:55 AM Ruby trunk Feature #5478: import Set into core, add syntax
I really like `~[1, 2, 3]` as a shortcut for `Set.new([1, 2, 3])`:
class Array
def ~@
Set.new self
...

11/14/2012

04:53 AM Ruby trunk Feature #7341: Enumerable#associate
>
> 1) The form you suggest would be redundant with `Enumerable#to_h`
>

I agree that 'Enumerable#to_h' woul...
04:23 AM Ruby trunk Feature #7346: object(...) as syntax sugar for object.call(...)
@rosenfeld, I'll just mention that you can use Proc#[] in your example:

double = -> n { n * 2 }

double[3] ...

11/13/2012

08:29 AM Ruby trunk Feature #7341 (Open): Enumerable#associate
Jeremy Kemper proposed Enumerable#associate during the discussion in #7297, with the following details:
----------...
08:17 AM Ruby trunk Feature #7340 (Open): 'each_with' or 'into' alias for 'each_with_object'
Following on from the discussions at #7297 and #7241, it is apparent that a shorter alias for 'each_with_object' woul...

Also available in: Atom