Re: Defining Functions / Procedures

Chris Angelico <[email protected]> Fri, 10 Dec 2021 14:09:21 +1100
Newsgroups gmane.comp.lang.pike.user
Message-ID <CAPTjJmqS+bYH=99UX_7T53t5PSzDsfHpxqaL-s_SsYZ-Eu1VDA@mail.gmail.com>
On Fri, Dec 10, 2021 at 1:10 PM Duke Normandin <[email protected]> wrote:
>
> Greetings ..
>
> function hello =lambda() {}
>
> or
>
> void hello() {}
>
> In Pike, which form is prefered or optimal? Why?
> TIA ...


Definitely the second, unless you need it to be a variable.

ChrisA