QGIS/scripts
Nyall Dawson ae00eb965c [FEATURE] Allow expression functions to use named parameters
This commit sets the framework for allowing expression functions to
use named parameters. Ie, instead of:

clamp(1,2,3)

you can use:

clamp( min:=1, value:=2, max:=3)

This also allows arguments to be switched, eg:

clamp( value:=2, max:=3, min:=1)

Additionally, it allows for a more structured definition of function
parameters to handle optional arguments and default values for
parameters. These are currently being done using a hacky infinite
argument list.

I've utilised the postgres ':=' syntax for specifying named arguments
to avoid potential collisions which may arise with the equality test
if we re-used just the '=' operator alone.

Sponsored by North Road
2016-04-04 13:59:13 +10:00
..
2016-04-03 01:56:21 +02:00
2016-01-08 21:32:11 +01:00
2015-04-07 14:27:39 +02:00
2016-03-25 20:29:18 +01:00
2016-02-14 03:50:49 +01:00
2014-11-12 17:43:16 +01:00
2016-01-24 20:16:28 +01:00
2014-01-24 23:54:53 +02:00
2014-11-12 17:43:16 +01:00
2015-07-26 18:25:07 +02:00
2016-03-16 00:34:24 +01:00
2016-03-14 20:38:20 +01:00
2015-07-26 18:25:07 +02:00
2014-02-07 21:02:11 +01:00
2014-05-18 15:22:32 +02:00
2015-06-24 09:08:52 +02:00
2014-11-24 23:07:45 +01:00
2016-02-11 23:44:36 +01:00