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)
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)
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)
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)
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)
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)
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)
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)
"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)
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)