Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature enhanced_re_xx #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

khwilliamson
Copy link

No description provided.

rfcs/rfc0018.md Outdated Show resolved Hide resolved
@rjbs
Copy link
Member

rjbs commented Sep 23, 2022

@khwilliamson This sort of slipped through the cracks. Shall we discuss its future?

@khwilliamson
Copy link
Author

khwilliamson commented Sep 23, 2022 via email

@hvds
Copy link

hvds commented Sep 23, 2022

I don't know if I responded to this before, perhaps during p5p discussion.

I am concerned about having multiple /x-style variants - I do not think we should have more than one. So I think it would be better to make this an opt-in change to how /x is interpreted (with the aim that it eventually may become a 'use v5.xx' default), and aim to retire /xx.

But I think it is also important that we avoid continued passes at this, because of the knots we tie ourselves into to preserve backward compatibility: let's make sure we've fully specced what the ideal /x grammar should look like, and if there are any aspects of that we cannot implement right now, let's think about whether we can retain space to add them in the future (or even whether we should choose to defer changes until we can implement the full thing).

In that respect:

  • what counts as whitespace we want to ignore?
  • where in a pattern (if anywhere) should whitespace not be allowed?
  • what counts as a comment we want to ignore?
  • where in a pattern should comments not be allowed?

@hvds
Copy link

hvds commented Oct 7, 2022

@rjbs duplicating here, since you presumably did not see my email

While our RFC process was a bit more wobbly, Karl propose an enhanced form of /xx for regex #17. I have included the text below so we can discuss it on list. I will reply to this post with some comments.

I had commented on the pull request, apparently around the same time as you sent email to the list. Should I duplicate the comment for the discussion on-list?

I confess I don't understand where these discussions are supposed to happen, or how one should know when the venue has changed.

@khwilliamson
Copy link
Author

khwilliamson commented Oct 12, 2022 via email

@hvds
Copy link

hvds commented Oct 12, 2022

On 10/7/22 11:26, Hugo van der Sanden wrote: @rjbs https://github.com/rjbs duplicating here, since you presumably did not see my email While our RFC process was a bit more wobbly, Karl propose an enhanced form of /xx for regex #17 <#17>. I have included the text below so we can discuss it on list. I will reply to this post with some comments. I had commented on the pull request, apparently around the same time as you sent email to the list. Should I duplicate the comment for the discussion on-list? I confess I don't understand where these discussions are supposed to happen, or how one should know when the venue has changed.
I'm told to use "substantive discussion on p5p, copy editing on GitHub" Since /xx has been in effect since 5.26, I see no feasible path to folding it and plain /x together.

The path is straightforward, and similar to what you propose here: introduce the change under a feature, intending to make the feature default within the lexical scope of an appropriate use v5.xx declaration after a period of bedding-in.

@khwilliamson
Copy link
Author

khwilliamson commented Oct 16, 2022 via email

@hvds
Copy link

hvds commented Oct 16, 2022

The path is straightforward, and similar to what you propose here: introduce the change under a feature, intending to make the feature default within the lexical scope of an appropriate use v5.xx declaration after a period of bedding-in.

To clarify my point. The path may be straight forward, but we would discover that too much existing code would have to be changed.

That existing code presumably does not declare use feature qw{groovy_regexps} nor use v5.44, why would it have to change?

rfcs/rfc0018.md Outdated Show resolved Hide resolved
@khwilliamson
Copy link
Author

@hvds , my goal is to have /xx work this way eventually without having to opt in.
I didn't understand what you were suggesting, that it always be opt-in, and use plain /x. Requiring opt-in means no need for deprecations, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants