4 ms·
The "parameter skipping" functionality is really useful but IMO they should take the same route that C# did with named parameters. function create_query($w
by giulianob 14y ago
The "parameter skipping" functionality is really useful but IMO they should take the same route that C# did with named parameters.
function create_query($where, $order_by, $join_type='', $execute = false, $report_errors = true) { ... }
create_query("deleted=0", "name", report_errors: true);
can even specify all parameters by name in different order
create_query(order_by: "name", report_errors: true, where: "deleted=0");