poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PROPOSAL] with_cur_ios() function in the stdlib


From: Mohammad-Reza Nabipoor
Subject: Re: [PROPOSAL] with_cur_ios() function in the stdlib
Date: Sun, 10 Apr 2022 14:22:13 +0430

Hello.

On Sat, Apr 09, 2022 at 07:55:16PM +0200, apache2 wrote:
> type void_lambda = ()void;
> fun with_cur_ios = (string filename, void_lambda callback)void:
>   {
>...
>   }


What about changing the function paramater `callback` to `do`, and change the
`filename` to `handle`, then user can use:

```poke
with_cur_ios
  :handle "Hi"
  :do lambda void:
      {
      };

```



reply via email to

[Prev in Thread] Current Thread [Next in Thread]