General

Profile

JonRowe (Jon Rowe)

Issues

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

Activity

07/09/2019

11:06 AM Ruby Feature #15897: `it` as a default block parameter
@mame I did, I apologise for not making it clear, I'm reiterating it to add weight to the con, its not just a simple "it is somewhat fragile, it may refer to a wrong variable" its a "this shadows the most commonly used method in the most... JonRowe (Jon Rowe)

07/08/2019

04:36 PM Ruby Feature #15897: `it` as a default block parameter
Its worth pointing out that this would always have to be lower priority than methods and other such locals defined in order to allow code to work. If precedence for this was changed to later override existing definitions of it, or simply... JonRowe (Jon Rowe)

07/05/2019

07:44 AM Ruby Feature #15897: `it` as a default block parameter
> Is that used in practice though? I know pending examples, but I would expect they at least have a description.
No but as Ruby doesn't allow method overloading you do create that ambiguity, and the possibility for future bugs due to ...
JonRowe (Jon Rowe)

07/03/2019

09:26 PM Ruby Feature #15897: `it` as a default block parameter
👋Hello! As the current maintainer of RSpec I'm concerned about the confusion here.
```ruby
RSpec.describe do
it "will do the thing" do
it # now refers to the first argument to the block? (Which ironically is the example itsel...
JonRowe (Jon Rowe)

12/24/2018

03:35 PM Ruby Feature #15456: Adopt some kind of consistent versioning mechanism
> These days many people specify versions in Gemfile like gem "some-libs", "< 2".
> ...
More people use `gem "some-libs", "~> 2.0.0"` and having breaking changes in a minor or patch release break the applications dependant on them.
T...
JonRowe (Jon Rowe)

06/21/2014

07:19 AM Ruby Bug #9967: `define_method(:name, &block)` breaks the use of the block on its own
I tried to work around this bug by duplicating the proc with `.dup` but it seems that dup doesn't actually duplicate the proc. So I went digging through the C code and discovered that `define_method` actually does try to dup the proc wit... JonRowe (Jon Rowe)

01/12/2014

08:01 AM Ruby Bug #9397: Lambda#=== raises `ArgumentError` if the lambda accepts 0 args or requires more than 1
This seems odd behaviour, given that in normal usage you'd never be able to satisfy the constraint to avoid the ArgumentError, I feel this should return false like a proc would do. JonRowe (Jon Rowe)

04/03/2013

11:49 AM Ruby Feature #8191: Short-hand syntax for duck-typing
@wardrop The reason we all love Ruby is because it makes us happy. This suggestion makes me unhappy, so I'm saying so, and I'm attempting to do so constructively. Ruby has an ethos around writing elegant clean code which deserves protect... JonRowe (Jon Rowe)
11:01 AM Ruby Feature #8191: Short-hand syntax for duck-typing
Although this is just my 2¢... I think this is a bad idea... and here's why...
1) One of the principles of good software development is "tell don't ask", meaning that we should be passing messages around objects, telling others to do t...
JonRowe (Jon Rowe)

Also available in: Atom