[Perl/perl5] 4db0a1: Simplify builtin.pm

2024-06-10 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4db0a1d758d7853007abbc2e3b181e39ca3bede6
  
https://github.com/Perl/perl5/commit/4db0a1d758d7853007abbc2e3b181e39ca3bede6
  Author: James Raspass 
  Date:   2024-06-10 (Mon, 10 Jun 2024)

  Changed paths:
M lib/builtin.pm

  Log Message:
  ---
  Simplify builtin.pm

Replace explicit strict/warnings with use current version. This halves
the number of packages a -E will load, from:

  $ perl -E 'say for sort keys %INC'
  builtin.pm
  feature.pm
  strict.pm
  warnings.pm

To just builtin and feature. (pre-5.40 was just feature.pm).

While this .pm does very little and we could easily get away without
using strict or warnings I prefer that we dogfood best practices and
doing so allows us to remove the explicit return true so it costs us
nothing in verbosity.



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 6da402: Modernise & simplify bytes.pm

2024-02-28 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 6da4021a52da85dc8755b9c2798bc9f13f9d10d1
  
https://github.com/Perl/perl5/commit/6da4021a52da85dc8755b9c2798bc9f13f9d10d1
  Author: James Raspass 
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
M MANIFEST
M Porting/Maintainers.pl
M lib/bytes.pm
M lib/bytes.t
R lib/bytes_heavy.pl

  Log Message:
  ---
  Modernise & simplify bytes.pm



To unsubscribe from these emails, change your notification settings at 
https://github.com/Perl/perl5/settings/notifications


[Perl/perl5] 8be87d: Set builtin::indexed proto to "@"

2023-08-17 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 8be87d1d421762a600a29876d805518e10bdf84c
  
https://github.com/Perl/perl5/commit/8be87d1d421762a600a29876d805518e10bdf84c
  Author: James Raspass 
  Date:   2023-08-17 (Thu, 17 Aug 2023)

  Changed paths:
M builtin.c
M lib/builtin.t

  Log Message:
  ---
  Set builtin::indexed proto to "@"




[Perl/perl5] 69b6a7: Correct grammar in perlfunc.pod - select

2023-07-03 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 69b6a7188928bf04aebca5bfccdf669c31197b7f
  
https://github.com/Perl/perl5/commit/69b6a7188928bf04aebca5bfccdf669c31197b7f
  Author: James Raspass 
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
M pod/perlfunc.pod

  Log Message:
  ---
  Correct grammar in perlfunc.pod - select




[Perl/perl5] d6959f: warnings::register - simplify use of caller

2023-02-22 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: d6959f5c125a4785f0831f4c927cdf44069beb31
  
https://github.com/Perl/perl5/commit/d6959f5c125a4785f0831f4c927cdf44069beb31
  Author: James Raspass 
  Date:   2023-02-22 (Wed, 22 Feb 2023)

  Changed paths:
M lib/warnings/register.pm

  Log Message:
  ---
  warnings::register - simplify use of caller

caller in scalar context does much less work so not only is this easier to 
read, it should be a tad faster.

And for good measure, switch to the modern version declaration while bumping.




[Perl/perl5] a02b81: Add builtin::is_tainted

2022-07-04 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: a02b8151f9b69201233f9ca5774db280c34684de
  
https://github.com/Perl/perl5/commit/a02b8151f9b69201233f9ca5774db280c34684de
  Author: James Raspass 
  Date:   2022-07-05 (Tue, 05 Jul 2022)

  Changed paths:
M builtin.c
M ext/Opcode/Opcode.pm
M lib/B/Deparse.pm
M lib/B/Deparse.t
M lib/B/Op_private.pm
M lib/builtin.pm
M lib/builtin.t
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcodes
M t/perf/opcount.t

  Log Message:
  ---
  Add builtin::is_tainted

Also tweak the implementation of the other two boolean builtins (is_bool
& is_weak) to be slightly more efficient.




[Perl/perl5] 861e73: Tie::SubstrHash - Replace tabs with spaces

2022-02-17 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 861e73498e42732c5b82a6bdff709b6c6ae98965
  
https://github.com/Perl/perl5/commit/861e73498e42732c5b82a6bdff709b6c6ae98965
  Author: James Raspass 
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
M lib/Tie/SubstrHash.pm

  Log Message:
  ---
  Tie::SubstrHash - Replace tabs with spaces


  Commit: 56ceff59ef0980a5dc09b1aff0e3ba56607de0b4
  
https://github.com/Perl/perl5/commit/56ceff59ef0980a5dc09b1aff0e3ba56607de0b4
  Author: James Raspass 
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
M lib/Tie/SubstrHash.pm

  Log Message:
  ---
  Tie::SubstrHash - Use ||= and //=


  Commit: 8db33c992cc09f42dad0dc472cd49fb6b7538d0e
  
https://github.com/Perl/perl5/commit/8db33c992cc09f42dad0dc472cd49fb6b7538d0e
  Author: James Raspass 
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
M lib/Tie/SubstrHash.pm

  Log Message:
  ---
  Tie::SubstrHash - Consistently deref with the arrow op


  Commit: 362ab35b76c7bd2d3a74d2be2de0d5865aed2e52
  
https://github.com/Perl/perl5/commit/362ab35b76c7bd2d3a74d2be2de0d5865aed2e52
  Author: James Raspass 
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
M lib/Tie/SubstrHash.pm

  Log Message:
  ---
  Tie::SubstrHash - Replace sub ceil with builtin::ceil


  Commit: b3883e204ede30d5706ff18304d94e802ca0952c
  
https://github.com/Perl/perl5/commit/b3883e204ede30d5706ff18304d94e802ca0952c
  Author: James Raspass 
  Date:   2022-02-17 (Thu, 17 Feb 2022)

  Changed paths:
M lib/Tie/SubstrHash.pm

  Log Message:
  ---
  Tie::SubstrHash - Add strict & warnings


Compare: https://github.com/Perl/perl5/compare/91055b9d3024...b3883e204ede


[Perl/perl5] 17a8df: Add ceil & floor to builtin

2022-01-23 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 17a8df707746ce70979d18c5b5f9e383c365bbff
  
https://github.com/Perl/perl5/commit/17a8df707746ce70979d18c5b5f9e383c365bbff
  Author: James Raspass 
  Date:   2022-01-24 (Mon, 24 Jan 2022)

  Changed paths:
M builtin.c
M ext/Opcode/Opcode.pm
M lib/B/Deparse.pm
M lib/B/Deparse.t
M lib/B/Op_private.pm
M lib/builtin.pm
M lib/builtin.t
M opcode.h
M opnames.h
M pp.c
M pp_proto.h
M regen/opcodes
M t/perf/opcount.t

  Log Message:
  ---
  Add ceil & floor to builtin




[Perl/perl5] 59f2a7: Modernise File::Compare a little

2021-12-16 Thread James Raspass via perl5-changes
  Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 59f2a7f55726f30a8eb0e321563f63e1a1672258
  
https://github.com/Perl/perl5/commit/59f2a7f55726f30a8eb0e321563f63e1a1672258
  Author: James Raspass 
  Date:   2021-12-16 (Thu, 16 Dec 2021)

  Changed paths:
M lib/File/Compare.pm

  Log Message:
  ---
  Modernise File::Compare a little

 - Move the version to the package line and bump it.
 - Bump use version now that we're using package NAME VER.
 - Drop strict now that we get it from use version.
 - Switch to non-inheritance based Exporter usage.
 - Use defined-or operator.