General

Profile

alanwu (Alan Wu)

  • Registered on: 10/28/2018
  • Last connection: 07/17/2019

Issues

Activity

07/17/2019

09:20 PM Ruby master Feature #15973: Make it so Kernel#lambda always return a lambda
> Can you present use case(s) for turning procs into lambdas?
One use case is reading the parameters of blocks as ...
alanwu (Alan Wu)

07/15/2019

10:02 PM Ruby master Bug #15620: Block argument usage affects lambda semantic
Here is a patch which restores the 2.4 behavior:
https://github.com/ruby/ruby/pull/2289
Passes make check with ...
alanwu (Alan Wu)
04:24 AM Ruby master Bug #16004 (Open): Kernel#lambda captured with Kernel#method doesn't create lambdas
`ruby -e 'p method(:lambda).call{}.lambda?'` prints false on 2.3.x-master(223854ebe8).
I think it should create lamb...
alanwu (Alan Wu)

07/14/2019

04:08 PM Ruby master Feature #16001: Provide an alias to Kernel#caller_locations(1,1) and Kernel#caller(1,1)
Would this be an instance method on Kernel? If so, it seems like a very heavy handed way to shorten something that is... alanwu (Alan Wu)

07/12/2019

04:11 AM Ruby master Feature #15973: Make it so Kernel#lambda always return a lambda
The idea to generate a delegating lambda seems to side-step a lot of the issues posted here.
For reference here are ...
alanwu (Alan Wu)

07/09/2019

02:32 PM Ruby master Feature #15973: Make it so Kernel#lambda always return a lambda
> Can I ask you why you need this feature?
I want to be able to forward a block to `Kernel#lambda`.
`Kernel#la...
alanwu (Alan Wu)
02:14 PM Ruby master Feature #15923: New independent string without memcpy
Instead of working on a separate buffer then asking Ruby to take ownership, you could make changes to the buffer of a... alanwu (Alan Wu)

07/08/2019

12:35 AM Ruby master Feature #15973: Make it so Kernel#lambda always return a lambda
I would also like to note that if we revert back to the behavior in 2.4, code that relied on `lambda` without block w... alanwu (Alan Wu)
12:20 AM Ruby master Feature #15973: Make it so Kernel#lambda always return a lambda
The 2.4 spec is a bit problematic since it makes it impossible to forward a
block to `Kernel#lambda` with a block pa...
alanwu (Alan Wu)

07/04/2019

10:06 AM Ruby master Bug #15984: deleting from a collection while iterating on it
> This generates a wrong output collection after doing this action.
Could you provide some examples and explain e...
alanwu (Alan Wu)

Also available in: Atom