General

Profile

bughit (bug hit)

  • Login: bughit
  • Registered on: 10/29/2014
  • Last connection: 06/22/2021

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 10 24 34

Activity

07/20/2021

08:27 AM Ruby master Feature #18040: Why should `foo(1 if true)` be an error?
> implicit casting from a statement to an expression within a method definition body
It's not just the method body...
bughit (bug hit)

07/19/2021

07:56 PM Ruby master Feature #18040: Why should `foo(1 if true)` be an error?
jeremyevans0 (Jeremy Evans) wrote in #note-4:
> You may want to read the definition of `stmt` in parse.y, particularl...
bughit (bug hit)
07:22 PM Ruby master Feature #18040: Why should `foo(1 if true)` be an error?
```rb
def foo
2
1 if false
end
p foo
```
foo returns nil, the value of the last expression `1 if false...
bughit (bug hit)
07:11 PM Ruby master Feature #18040: Why should `foo(1 if true)` be an error?
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> `1 if true` is a statement and not an expression
`1 if true` is a...
bughit (bug hit)
06:47 PM Ruby master Feature #18040 (Rejected): Why should `foo(1 if true)` be an error?
There's no ambiguity here that should require another set of parens `foo((1 if true))` bughit (bug hit)

03/12/2021

06:58 PM Ruby master Feature #17721 (Open): Proc.new should be able to contruct a lambda
since procs and lambdas are of the same type, as long as Proc::new exists, it should be able to create either.
```...
bughit (bug hit)

08/11/2020

03:57 PM Ruby master Feature #17104: Do not freeze interpolated strings when using frozen-string-literal
> another reason is avoidance of alias effects
What you've shown is not another reason for freezing.
`a = b = "...
bughit (bug hit)

08/10/2020

06:51 PM Ruby master Feature #17104: Do not freeze interpolated strings when using frozen-string-literal
> However in my view what defines a literal, is the use of a specific syntax, so ""
There is only one reason for f...
bughit (bug hit)

08/05/2020

09:18 PM Ruby master Feature #17104: Do not freeze interpolated strings when using frozen-string-literal
Can't we just treat this as I feature request? The reasons are, it will reduce allocations, be more logical, less sur... bughit (bug hit)
08:58 PM Ruby master Feature #17104: Do not freeze interpolated strings when using frozen-string-literal
If you want to get a mutable string from an interpolated literal `+"_#{method1}_"`, 2 allocation will be done instead... bughit (bug hit)

Also available in: Atom