Hi
Am 2025-12-02 21:06, schrieb Larry Garfield:
2. Maybe some parts of the RFC could be separated to reduce
complexity.
Thinking about variable pinning.
Actually, with the new implementation variable pinning turned out to be
stupidly easy. That was a convenient bonus, which is why we included
it in the initial RFC. It was originally in future scope, but the diff
to add it was like 10 lines or something, so we included it now. The
future-scopes that are still in future-scope are all "harder than they
look" or "deciding what exactly to do will be a lot of discussion",
which is why they're there and not in the base release.
There are different dimensions to complexity. Your reply focuses on just
“implementation complexity”, but there's also “documentation complexity”
or “deciding-how-the-syntax-should-look complexity”. I feel that the
syntax for “variable pinning” specifically has the weakest arguments in
favor of it, with the main argument being “Ruby has it” rather than “it
makes sense”. The other syntax choices either are “obviously correct” or
have good arguments backing the choice.
Best regards
Tim Düsterhus