[Ur] Optional URL arguments

Artyom Shalkhakov artyom.shalkhakov at gmail.com
Wed Mar 9 22:26:27 EST 2016


Hello all,

How to handle optional arguments? For instance, I'm writing a
pagination script and page number is an optional argument. If I use
the following function for pagination:

> fun mypaginator (page_nr: option int): transaction page = ...

Which maps to the URL of the form:

> /Mymodule/mypaginator/Some/1

or of the form:

> /Mymodule/mypaginator/None

Which users will not like, I guess.

Coincidentally, why are there no functions to work with the type [queryString]?

-- 
Cheers,
Artyom Shalkhakov



More information about the Ur mailing list