General

Profile

bozhidar (Bozhidar Batsov)

  • Login: bozhidar
  • Email: bozhidar@batsov.com
  • Registered on: 05/09/2013
  • Last sign in: 10/21/2020

Issues

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

Activity

11/05/2020

09:41 AM Ruby Feature #17208: Add `Set#compact` and `Set#compact!` methods
I like the proposal. I also wonder if we shouldn't be able to able to reject nils at Set creation time, as nil rarely makes sense as a set value. bozhidar (Bozhidar Batsov)

03/30/2019

11:57 AM Ruby Misc #15723: Reconsider numbered parameters
For me a big problem is that the syntax additions obviously affect what's being valued/promoted and so on. In the example you gave about the safe navigation operator, the real problem is that `f` could be nil in the first place. When you... bozhidar (Bozhidar Batsov)

03/27/2019

09:51 AM Ruby Misc #15723: Reconsider numbered parameters
> I disagree. To only accept uncontroversial features is the death knell for progress. Design by committee is the last thing Ruby needs.
I'm not a fan of design by committee as well. I was referring to the fact he seemed unhappy with ...
bozhidar (Bozhidar Batsov)

03/26/2019

02:20 PM Ruby Misc #15723: Reconsider numbered parameters
> I definitely prefer @1 over %1 for Ruby, because for me it 'rhymes' with @instance_var and @@class_var, as jeremyevans0 has explained.
That's why I dislike it so much. Block vars would ideally not look like class/instance vars. Apar...
bozhidar (Bozhidar Batsov)
07:57 AM Ruby Misc #15723: Reconsider numbered parameters
> $it can already be defined, so this is not backwards compatible.
It can, but that's extremely unlikely, so I think the impact to backwards compatibility would be negligible. I've almost never seen anyone define globals themselves. I...
bozhidar (Bozhidar Batsov)

03/25/2019

04:48 PM Ruby Misc #15723: Reconsider numbered parameters
> While I'm not totally against your opinion, I would like you to understand that this feature was not made out of thin air; it was feature requested. People think this is a neat feature. If you are against the feature itself not against... bozhidar (Bozhidar Batsov)

03/18/2019

05:12 PM Ruby Feature #4475: default variable name for parameter
I also dislike the use of `@` for this. It looks very weird and evokes strong references to instance variables in my mind. I'm not sure which characters exactly are an option, but I think we should avoid the use of `@`. Will something li... bozhidar (Bozhidar Batsov)

10/27/2018

07:20 AM Ruby Feature #14136: Implement #empty? on more classes
jeremyevans0 (Jeremy Evans) wrote:
> bozhidar (Bozhidar Batsov) wrote:
> ...
Yeah, I completely agree with you. Excellent point about using `size` in different contexts! Generally I'm not trying to suggest changes for the sake of makin...
bozhidar (Bozhidar Batsov)

09/12/2018

05:12 AM Ruby Feature #14136: Implement #empty? on more classes
bozhidar (Bozhidar Batsov) wrote:
> phluid61 (Matthew Kerwin) wrote:
> ...
Also I'm curious who'd claim that adding an empty method doesn't make sense for something like `Tempfile` or `StringIO`.
bozhidar (Bozhidar Batsov)
05:09 AM Ruby Feature #14136: Implement #empty? on more classes
phluid61 (Matthew Kerwin) wrote:
> mikegee (Michael Gee) wrote:
> ...
Yeah, in this case I'd argue that it's better to use some `top-level` methods of `File` instead, but in general every object that has the notion of size should also ...
bozhidar (Bozhidar Batsov)

Also available in: Atom