]> Lady’s Gitweb - Gitweb/commit
gitweb: Remove function prototypes (cleanup)
authorJakub Narebski <redacted>
Thu, 7 May 2009 17:11:29 +0000 (19:11 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
commitcb11a759f179c056d587d03e5d0d0fb2199b317c6761f184a7c1a396d05b225d
tree8e53b1ca85ae40205af5c3947e157f46a84163e11c4d80f26e7001d25d10f9b6
parent5a8aef00cf48a41cfbf863a708a2d4014410f74dc1b90efb2708c72420df2286
gitweb: Remove function prototypes (cleanup)

Use of function prototypes is considered bad practice in Perl.  The
ones used here didn't accomplish anything anyhow, so they've been
removed.

>From perlsub(1):

  [...] the intent of this feature [prototypes] is primarily to let
  you define subroutines that work like built-in functions [...]
  you can generate new syntax with it [...]

We don't want to have subroutines behaving exactly like built-in
functions, we don't want to define new syntax / syntactic sugar, so
prototypes in gitweb are not needed... and they can have unintended
consequences.

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.23103 seconds and 4 git commands to generate.