General

Profile

Ajedi32 (Ajedi32 W)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

12/27/2017

08:28 PM Ruby Feature #7792: Make symbols and strings the same thing
Leaving aside the issue of semantics for a moment, can anyone provide a real, concrete example of a situation where symbols could not trivially be replaced with strings without negatively impacting the functionality of the surrounding co... Ajedi32 (Ajedi32 W)

10/05/2017

09:26 PM Ruby Feature #5964: Make Symbols an Alternate Syntax for Strings
avit (Andrew Vit) wrote:
> methods like `:a + :b` or `:c.upcase` make no sense.
They do make sense though. In fact, I can easily tell exactly what those methods should return just by their names. Are you saying you can't?
I can ev...
Ajedi32 (Ajedi32 W)

12/07/2015

03:19 PM Ruby Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
Ah, for some reason I was under the impression that the plan was to use the indentation from the first non-blank line to determine how much to dedent the entire string.
If the plan instead is to use the least-indented non-blank line f...
Ajedi32 (Ajedi32 W)

11/28/2015

05:37 PM Ruby Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
Right. I guess what I'm saying is that tabs shouldn't be treated as equivalent to spaces at all, since the number of spaces they are "equivalent" to is different for every developer, depending on what they have their editor set to displa... Ajedi32 (Ajedi32 W)
03:14 AM Ruby Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
I'm confused. Why are tabs being treated as equivalent to spaces at all? E.g. If I write:
```ruby
def hello
puts <<~README.inspect
<tab>Hello
<space><space><space><space><space><space><space><space>World!
README
end
e...
Ajedi32 (Ajedi32 W)

11/09/2015

03:00 PM Ruby Feature #9098: Indent heredoc against the left margin by default when "indented closing identifier" is turned on.
What do you mean? Isn't the number of spaces a tab is equivalent to only relevant when the first line is indented with tabs, while the following lines are indented with spaces (or vice-versa)?
Shouldn't it just throw an error in that ...
Ajedi32 (Ajedi32 W)

11/30/2014

03:57 AM Ruby Feature #10552: [PATCH] Add Enumerable#frequencies and Enumerable#relative_frequencies
Personally, I'd prefer the form `Enumerable#count_by` with a block, as this method seems very similar to `group_by` in my opinion. I also think `relative_frequencies` is unnecessary, as I think `map_values` (or `transform_values` or what... Ajedi32 (Ajedi32 W)

11/26/2014

10:33 PM Ruby Bug #10460: Segfault instead of stack level too deep
Ran into this issue today when I accidentally created a stack overflow in my RSpec tests:
* ruby 2.1.5p273 (2014-11-13 revision 48405, [i686-linux]
* rspec 2.13.1
Attached is code which (sometimes) reproduces the problem (run with...
Ajedi32 (Ajedi32 W)

11/02/2014

07:23 PM Ruby Feature #7793: New methods on Hash
"repair"? Hehe, yeah that's kind of an unfortunate coincidence.
The thing I really like about Option 4's `graph` and `mash` is that they are methods on `Enumerable`, which means they can be used with any Enumerable object, not just ha...
Ajedi32 (Ajedi32 W)

10/29/2014

01:56 PM Ruby Feature #7793: New methods on Hash
Below is a summary of the different naming proposals so far in this thread, with links to the documentation for real-world implementations where available.
# Option 1
The original proposal, uses the term `map` to express changing t...
Ajedi32 (Ajedi32 W)

Also available in: Atom