General

Profile

alanwu (Alan Wu)

  • Registered on: 10/28/2018
  • Last connection: 10/30/2019

Issues

Activity

11/07/2019

03:56 AM Ruby master Feature #16295: Chainable aliases for String#-@ and String#+@
@phluid61 Sorry bout that. I should have checked the history before posting my misleading comment!
alanwu (Alan Wu)
12:31 AM Ruby master Feature #16295: Chainable aliases for String#-@ and String#+@
I like `dedup` too. `-@` was introduced to expose deduplication in the first place.
Usages I've seen all have to do ...
alanwu (Alan Wu)

11/02/2019

12:32 AM Ruby master Feature #11660: a falsy value (similar to js undefined) that facilitates forwarding of default arguments
Since the beginning of time (correct me if I'm wrong), the two falsy values in Ruby has been `false` and `nil`, perio... alanwu (Alan Wu)

11/01/2019

09:37 AM Ruby master Revision c56d8dea (git): Mention correct class name in uninitialized error
I think this meant to mention `MatchData`? This is a breaking change, but
should be a minor one.
alanwu (Alan Wu)

10/31/2019

07:30 PM Ruby master Feature #16276: For consideration: "private do...end" / "protected do...end"
The extra complication comes from this part of the original proposal:
```ruby
private do
def self.some_private...
alanwu (Alan Wu)
01:23 PM Ruby master Revision 0aaa15f6 (git): [ruby/zlib] Fix setting mtime to zero in GzipWriter
Before this change, it was not possible to write out zero for the
timestamp part of a Gzip file's header, as calling ...
alanwu (Alan Wu)

10/30/2019

11:11 PM Ruby master Feature #16275: Revert `.:` syntax
`.:` has special power in that one cannot change its semantics by redefining a
method. It other words, it's a fundam...
alanwu (Alan Wu)
09:14 PM Ruby master Feature #16276: For consideration: "private do...end" / "protected do...end"
For the following:
```ruby
class Foo
private do
o = Object.new
def o.hello; end
end
end
```
Woul...
alanwu (Alan Wu)
06:06 PM Ruby master Bug #16285 (Closed): Setting mtime to zero on Zlib::GzipWriter does nothing
Run the following script to observe the issue
```ruby
require 'zlib'
def write_gzip_file(content, mtime)
File...
alanwu (Alan Wu)
03:37 PM Ruby master Revision 4c7f789e (git): Allow only one argument for keyword_init struct
```
irb(main):001:0> RUBY_VERSION
=> "2.6.5"
irb(main):002:0> S = Struct.new(:foo, keyword_init: true)
=> S(keyword_i...
alanwu (Alan Wu)

Also available in: Atom