waiting_for_dev (Marc Busqué)
- Login: waiting_for_dev
- Registered on: 03/10/2022
- Last sign in: 10/13/2023
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 1 | 2 | 3 |
Activity
09/18/2023
-
11:30 AM Ruby Bug #19888 (Feedback): Can't change binding of a Proc coerced from a Method
- `instance_exec` or `instance_eval` can execute a given `Proc` in the context of the receiver. However, that's not true when the `Proc` has been coerced from a `Method`. In that situation, the binding is always tied to the original instan...
03/18/2022
-
05:48 AM Ruby Feature #18644 (Open): Coerce anything callable to a Proc
- Functional objects are increasingly popular in Ruby. Having objects that respond to `#call` makes them interchangeable with a `Proc`.
However, when you need to perform some Proc-specific operation, like currying, you have to break the...
03/10/2022
-
12:07 PM Ruby Bug #18620 (Rejected): Not possible to partially curry lambda or proc's `call` method
- You can curry the call method of a regular object:
``` ruby
class Foo
def foo(a, b)
a + b
end
end
Foo.new.method(:foo).curry[1][2] # => 3
```
You can also curry a lambda:
```ruby
lambda { |a, b| a + b }.curry[1][...