Skip to content

Conversation

@mauke
Copy link
Contributor

@mauke mauke commented Mar 15, 2025

  • Remove require 5.000. In theory, this would give a nice runtime error message when run under perl4; in practice, this file doesn't even parse as perl4 due to use strict, our, and -> method calls.
  • Use numeric comparison with $], not string comparison. (In practice, this would probably only start failing once we reach perl 10, but still.)
  • Don't repeatedly check $fc_available at runtime. Just define a fallback fc() in terms of lc() if CORE::fc is not available.
  • Add missing $key argument to sample code in SYNOPSIS. This fixes https://rt.cpan.org/Ticket/Display.html?id=97189.

  • This set of changes requires a perldelta entry, and it is included.

@jkeenan
Copy link
Contributor

jkeenan commented Mar 15, 2025

Search::Dict is dual-life, blead-first. This p.r. is failing some tests on perl-5.8. There has not been a fresh CPAN release since 2012.

I don't know if we have a Standard Operating Procedure for a case like this.

mauke added 2 commits March 15, 2025 14:23
- Remove 'require 5.000'. In theory, this would give a nice runtime
  error message when run under perl4; in practice, this file doesn't
  even parse as perl4 due to 'use strict', 'our', and '->' method calls.
- Use numeric comparison with $], not string comparison. (In practice,
  this would probably only start failing once we reach perl 10, but
  still.)
- Don't repeatedly check $fc_available at runtime. Just define a
  fallback fc() in terms of lc() if CORE::fc is not available.
- Add missing $key argument to sample code in SYNOPSIS. This fixes
  <https://rt.cpan.org/Ticket/Display.html?id=97189>.
@mauke
Copy link
Contributor Author

mauke commented Mar 15, 2025

@jkeenan Thanks, should be fixed now.

Copy link
Contributor

@jkeenan jkeenan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This module would benefit from what could be called "quasi-coverage analysis," i.e., examination to see whether all functionality described in the documentation is exercised or even implemented in the code. But we can save that for a different ticket. This looks fine for now.

@mauke mauke merged commit 6d84e5d into Perl:blead Mar 16, 2025
33 checks passed
@mauke mauke deleted the gumbo-5 branch March 16, 2025 15:57
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.

2 participants