Changes between Initial Version and Version 1 of Ticket #22400, comment 2
- Timestamp:
- 11/09/2012 11:23:27 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22400, comment 2
initial v1 1 Having `$defaults` contain all valid parameters certainly help a lot but I still think `extract()` is bad.1 Having `$defaults` contain all valid parameters certainly helps a lot but I still think `extract()` is bad. 2 2 3 3 If I see `$foo` somewhere deep in the function, it's not immediately clear if this is a function-set value or a user-supplied value. Yes, I probably have to search either way to see where the variable comes from but by instead using `$args['foo']`, it's more clear that this is a configuration argument rather than just a data storage variable.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)