General

Profile

palkan (Vladimir Dementyev)

Issues

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

Activity

01/24/2024

07:57 PM Ruby Feature #20205: Enable `frozen_string_literal` by default
byroot (Jean Boussier) wrote in #note-22:
> But you are right that it is uncommon for users to put `# frozen_string_literal: ` pragmas in evaled code, so this could indeed require some small adjustment for codebases that already define ...
palkan (Vladimir Dementyev)
07:45 PM Ruby Feature #20205: Enable `frozen_string_literal` by default
> Files with # frozen_string_literal: true or # frozen_string_literal: false don't change in behavior at all.
There is one use case in which having `# frozen_string_literal: true` differs from `RUBYOPT=--enable=frozen_string_literal` ...
palkan (Vladimir Dementyev)
07:42 PM Ruby Feature #20205: Enable `frozen_string_literal` by default
byroot (Jean Boussier) wrote in #note-16:
> > Here you go: https://github.com/ruby-next/freezolite 🙂
> ...
Sure, it must be a part of MRI (and other implementations). Consider it a PoC (though, quite robust and battle-tested in product...
palkan (Vladimir Dementyev)
05:46 PM Ruby Feature #20205: Enable `frozen_string_literal` by default
byroot (Jean Boussier) wrote in #note-8:
> Devise a way to set compile options for all files inside a directory
Here you go: https://github.com/ruby-next/freezolite 🙂
> ...
Smth like `spec.frozen_string_literals = true`? And du...
palkan (Vladimir Dementyev)

01/10/2024

11:06 PM Ruby Feature #20177 (Open): Optimized $LOADED_FEATURES.include?
I'd like to propose adding the optimized `$LOADED_FEATURES.include?` (not the one provided by the Array class) for faster feature checks in large codebases (when there are thousands of entries in the features list). I hit this problem wh... palkan (Vladimir Dementyev)
10:46 PM Ruby Feature #20024: SyntaxError subclasses
kddnewton (Kevin Newton) wrote in #note-14:
> In this case we would need to design the shape of a `SyntaxError::Diagnostic` class. I would imagine it would have the same fields that @yui-knk is proposing, something like:
> ...
I thin...
palkan (Vladimir Dementyev)
10:32 PM Ruby Feature #20164: Add Exception#deconstruct_keys
+1 for making exceptions pattern-matching friendly. The example above demonstrates the use case pretty well (class + message matching).
The question is what keys must be supported for each standard exception class? The plain Ruby impl...
palkan (Vladimir Dementyev)

04/18/2023

11:19 PM Ruby Revision b09f5c7b (git): MatchData#named_captures: add optional symbolize_names keyword (#6952)
palkan (Vladimir Dementyev)

04/15/2023

03:00 PM Ruby Feature #19591: Add symbolize_names to MatchData#named_captures
mame (Yusuke Endoh) wrote in #note-2:
> ... the keyword should be `symbolize_names`, not `symbolize_keys`, following `JSON.parse(..., symbolize_names: true)`.
Updated in the PR
palkan (Vladimir Dementyev)

04/13/2023

12:16 AM Ruby Misc #19525: DevMeeting-2023-04-13
* [Fearure [#19591](https://bugs.ruby-lang.org/issues/19591)] Add symbolize_keys to MatchData#named_captures
* Looking for Matz's feedback
palkan (Vladimir Dementyev)

Also available in: Atom