[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:60976] [ruby-trunk - Feature #9548] Module curry
From:
boris@...
Date:
2014-02-22 05:29:26 UTC
List:
ruby-core #60976
Issue #9548 has been updated by Boris Stitnicky.
@mame, I don't quite get these nuances between "currying" and "partial application". I could try and
learn them, but my approach is different here. I do not want to learn. I want to be stubborn like
Amazonians when first confronted with Bible. Pragmatically, partial application is all I need. And
since it's long, so let the word be `curry`. Whole point of using this hunger evoking word (Anglosaxon
surnames notwithstanding) is because it's short and unique, like "quark". And, a shameful secret,
my mnemonic for curry is, oh, it's like with food, there is something (mutton, chicken, veggies...),
and you can add different types of curry to it. And `#curry` decides about curry, and I then decide
about something. So it's "partial application". I suggest to cannibalize the theorists and settle
for this na誰ve interpretation of `curry`. (Just in case that I am really missing something here,
the theorists can go find a different word for that something after we steal `curry` from them and
use it for "partial application".)
@sam, see #7939 for my take on what `Proc#curry` should do.
----------------------------------------
Feature #9548: Module curry
https://bugs.ruby-lang.org/issues/9548#change-45379
* Author: Boris Stitnicky
* Status: Open
* Priority: Normal
* Assignee:
* Category:
* Target version:
----------------------------------------
I would like to beg for either `Module#curry` method with syntax
```ruby
module Foo
curry( :sym2, :sym1, 0 => 42, 1 => 43, 3 => 44, foo: "bar" )
end
```
or `curry` directive similar to the existing `alias` directive
```ruby
module Foo
curry sym2 sym1( 42, 43, *, 44, foo: "bar )
end
```
Example usage:
```ruby
module MyMath
def power a, b
a ** b
end
curry square power( *, 2 )
curry square_root power( *, 0.5 )
curry cube( *, 3 )
curry pow2 power( 2, * )
curry pow_e power( Math::E, * )
curry pow10 power( 10, * )
end
```
--
http://bugs.ruby-lang.org/