Changes between Initial Version and Version 1 of Ticket #22400, comment 7
- Timestamp:
- 11/10/2012 03:37:57 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22400, comment 7
initial v1 2 2 > Having `$defaults` contain all valid parameters certainly helps a lot but I still think `extract()` is bad. 3 3 4 In many contexts, I'd argue that unless you have intimate knowledge of the codebase, the `$defaults` array is ''the best'' documentation available for incoming args, regardless of whether `extract()` is used or not.4 In many contexts, I'd argue that unless you have intimate knowledge of the codebase, the `$defaults` array is ''the best'' in-line documentation available for incoming args, regardless of whether `extract()` is used or not. 5 5 6 6 I've read several places that using `extract()` often creates confusion, though I think as you pointed out, a lot of that stems from the lack of distinction with the resulting variables. With what seems to be widespread use in core (as evidenced in comment:3), I'm surprised `EXTR_PREFIX_ALL` never got used to set unique prefixes.