General

Profile

ted (Ted Johansson)

  • Login: ted
  • Email: drenmi@gmail.com
  • Registered on: 06/24/2017
  • Last sign in: 08/09/2024

Issues

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

Activity

03/06/2020

06:50 AM Ruby Feature #16615: Group style access scope for macros
shevegen (Robert A. Heiler) wrote in #note-1:
> Two comments from me in regards to the proposal:
> ...
The `attr_*` family of methods currently enjoys special treatment here, as they are the only methods
which define instance methods ...
ted (Ted Johansson)

02/07/2020

12:18 PM Ruby Feature #16615 (Open): Group style access scope for macros
Given a method `.bar`, which defines an instance method `#baz` on a class, and returns the defined method's name as a symbol (`:baz`).
```
class Foo
private
# On evaluation defines a method and returns its name.
# In cur...
ted (Ted Johansson)

09/20/2019

02:10 AM Ruby Feature #15381: Let double splat call `to_h` implicitly
I came here to file this feature request, only to find this had already been proposed. This would be beautiful, indeed. :-) ted (Ted Johansson)

04/02/2019

07:57 AM Ruby Misc #15723: Reconsider numbered parameters
What strikes me is that this feature attempts to solve a problem that is very limited in scope:
- Blocks where the arguments can't be given a meaningful name arguably become more noisy than they may need to.
with a very big hammer:...
ted (Ted Johansson)

09/24/2017

11:17 AM Ruby Feature #13933 (Rejected): Add Range#empty?
Range already responds to #size. It would be nice if it also responded to predicate #empty? :-) ted (Ted Johansson)

09/06/2017

03:43 PM Ruby Bug #13872: Duplicate assignment no longer silences "assigned but unused variable" warning
Previously, `foo = foo = "bar"` was used as a workaround. Now that the workaround is "fixed", I see incoming PRs changing the workaround to `foo = "bar"; foo = foo`.
It would be nice if we had a way to handle these false positives dir...
ted (Ted Johansson)

06/28/2017

11:57 AM Ruby Bug #13691 (Rejected): Word- and symbol array literals not valid where regular array is
Not sure if this is a limitation of the design space in the parser, or just a missed edge case. (Note that a regular array literal works fine.)
**Steps to reproduce:**
Run ruby -c on:
~~~ ruby
hoge %i(a b) { piyo }
~~~
**...
ted (Ted Johansson)

Also available in: Atom