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

Consider updating to Perl 5.10 #308

Open
petdance opened this issue Mar 3, 2023 · 1 comment
Open

Consider updating to Perl 5.10 #308

petdance opened this issue Mar 3, 2023 · 1 comment

Comments

@petdance
Copy link
Contributor

petdance commented Mar 3, 2023

Is there any interest in bumping up the minimum Perl for TT to 5.10.1 which came out in 2009?

There are many places we could use defined-or for simplicity and speed. For example, Template::VMethods::list_join would go from

join(defined $joint ? $joint : ' ',
    map { defined $_ ? $_ : '' } @$list);

to

join($joint//'', map { $_//'' } @$list);

There are probably places we could take advantage of state as well. Probably less so with say.

@nicolasfranck
Copy link

nicolasfranck commented Jul 12, 2024

That seems reasonable; and nothing stops client code from setting their dependencies to a fixed version.
Perl modules however have a poor habit of setting MyDep >= 2.0 without knowing if that statement will
always be true (ruby modules use ~>version to indicate "greater or equal to, but not beyond a major version").
Major version numbers often have breaking changes.

But knowing that perl 5.10 is ancient (and has it's own problems), I would feel no regret in doing so.

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

No branches or pull requests

2 participants