[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PROPOSAL] with_cur_ios() function in the stdlib
From: |
apache2 |
Subject: |
Re: [PROPOSAL] with_cur_ios() function in the stdlib |
Date: |
Sun, 10 Apr 2022 12:32:38 +0200 |
User-agent: |
Mutt/1.9.3 (2018-01-21) |
On Sun, Apr 10, 2022 at 02:22:13PM +0430, Mohammad-Reza Nabipoor wrote:
> 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:
> {
> };
>
> ```
I like this a lot! I wasn't aware of the named arguments syntax.
I revised the patch and tried to write documentation for it :-)
0001-with_cur_ios-function.patch
Description: Text Data
- [PROPOSAL] with_cur_ios() function in the stdlib, apache2, 2022/04/09
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Jose E. Marchesi, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Mohammad-Reza Nabipoor, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib,
apache2 <=
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Jose E. Marchesi, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Jose E. Marchesi, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Mohammad-Reza Nabipoor, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Jose E. Marchesi, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, apache2, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, Mohammad-Reza Nabipoor, 2022/04/10
- Re: [PROPOSAL] with_cur_ios() function in the stdlib, apache2, 2022/04/10