Req #70222 [Opn->Fbk]: Alias of function as func

From: Date: Sun, 09 Aug 2015 21:58:12 +0000
Subject: Req #70222 [Opn->Fbk]: Alias of function as func
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195062@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70222&edit=1

 ID:                 70222
 Updated by:         requinix@php.net
 Reported by:        tux at vmail dot me
 Summary:            Alias of function as func
-Status:             Open
+Status:             Feedback
 Type:               Feature/Change Request
 Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        Irrelevant
 Block user comment: N
 Private report:     N

 New Comment:

Why? What are the tangible benefits to doing this, besides saving four keystrokes? What problem does
it solve? What will happen to the people who already use "func" for names?


Previous Comments:
------------------------------------------------------------------------
[2015-08-09 17:15:42] tux at vmail dot me

Description:
------------
Can we please have alias of "function" as "func". Note this request is NOT to
replace "function" word, but to allow also to use alias of it as in "func".

Function Name Now:
function test($str) { return trim($str); }

Function Name Wanted:
func test($str) { return trim($str); }

Test script:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70222&edit=1


Thread (1 message)

  • requinix@php.net
  • Unknown Message
    • requinix@php.net
« previous php.bugs (#195062) next »