FlickGradley (Nick Bradley)
- Login: FlickGradley
- Registered on: 04/01/2023
- Last sign in: 08/18/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 1 | 1 |
Activity
08/18/2023
-
04:28 AM Ruby Feature #19840 (Feedback): [Proposal] Expand Find pattern to Multiple Find
- Hello! I love Ruby's pattern matching features. I would like to propose an expansion of the Find pattern which allows the selection of multiple matching elements of an array.
I often find myself dealing with data like this:
``` ruby
...
04/03/2023
-
02:05 AM Ruby Feature #19555: Allow passing default options to `Data.define`
- To clarify what I mean, this is a (very rough) demonstration:
``` ruby
class Data
def self.with_defaults(*symbols, **defaults, &block)
defaults&.each { |key, value| raise ArgumentError, "#{key} must be immutable" unless Racto...
04/01/2023
-
07:05 PM Ruby Feature #19555: Allow passing default options to `Data.define`
- I'm curious about this as well. Would it make sense to have a separate method `.with_defaults`, that checks the mutability (i.e. `.frozen?`) of its arguments?
If the intention is for Data to be "deeply" immutable, I could see this mak...