![]() |
Dynamic Functions Thing
I'm not sure what the correct term is but here's what I think would be cool to have...
PHP Code:
Calling the function instead of returning the name would be so much more useful and fun. |
Quote:
PHP Code:
|
Quote:
|
Would be kind of nice since you could use it just like a variable. It would make it easy to have options that you could have a function for or a constant variable.
|
No, this is wrong.
Having a constant function automatically be evaluated when coerced to a string doesn't reflect the reality and also provides some more confusion for anyone trying to learn. Functions are functions, functions are values, but functions are not fully-evaluated values. Anything suggesting otherwise will be misleading. |
Quote:
|
| All times are GMT +2. The time now is 02:39 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.