Re: Workaround to support default parameter values

Marcos Cruz <[email protected]> Thu, 20 Mar 2025 21:52:09 +0100
Newsgroups gmane.comp.lang.pike.user
Message-ID <Z9x/[email protected]>
Henrik Grubbström escribió/skribis/wrote/scrit (2025-03-20T19:59:55+0100):

> In Pike 9.0 (currently in beta) the following syntax is supported:
> 
> ```pike
> int typed_number(string prompt = "") {
>    // (…)
> }
> ```

Great.  That will make things simpler.

The other day I compiled and installed 8.0.1956 on Debian 12.10 (which
includes only 8.0.1738). I have downloaded 9.0.9 to try it soon.

>    prompt = prompt || "";

Meanwhile, that's better than checking with `stringp`.

Thanks.


-- 
Marcos Cruz
http://programandala.net