From 23da1b61f25bcb31dcf63d6281c0618c588995a1 Mon Sep 17 00:00:00 2001 From: totoro Date: Sun, 23 Oct 2022 17:52:53 +0200 Subject: [PATCH] add function get_mb_String for getting the a Maybe(String) instead of previous one named "get_String". --- web/web_arg_utils.anubis | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/web/web_arg_utils.anubis b/web/web_arg_utils.anubis index 6b6e810..32b05b2 100644 --- a/web/web_arg_utils.anubis +++ b/web/web_arg_utils.anubis @@ -287,7 +287,7 @@ public define DB_datetime }. public define Maybe(String) - get_String + get_mb_String ( List(Web_arg) lwa, String arg_name @@ -298,6 +298,16 @@ public define Maybe(String) found(value) then success(value) }. + //will be deprecated in the future. Please use get_mb_String instead +public define Maybe(String) + get_String + ( + List(Web_arg) lwa, + String arg_name + ) = + get_mb_String(lwa, arg_name) +. + public define String get_String ( -- libgit2 0.21.4