From: Dietmar Maurer <dietmar@proxmox.com>
To: Yew framework devel list at Proxmox <yew-devel@lists.proxmox.com>
Subject: Re: [yew-devel] [PATCH yew-widget-toolkit] props: replace `BuilderFn` with `RenderFn`
Date: Thu, 11 Dec 2025 13:49:35 +0000 [thread overview]
Message-ID: <mj1hszzp.3n38mpp0gfs00@proxmox.com> (raw)
In-Reply-To: <20251211125934.2358700-1-d.csapak@proxmox.com>
[-- Attachment #1.1: Type: text/plain, Size: 439 bytes --]
I think this was the reason I invented the whole thing.
> The only slightly awkward changes are: * we now have to use `apply(&())` in this case * when giving a callback to such a builder we have to use `|_: &_|` now, but this was also the case for any closure that got converted into a `RenderFn`.
Being forced to use |_: &_| is ugly, and the compiler errors for that are even more ugly and confusing. So I am not sure about this change.
[-- Attachment #1.2: Type: text/html, Size: 852 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
yew-devel mailing list
yew-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/yew-devel
next prev parent reply other threads:[~2025-12-11 13:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-11 12:59 Dominik Csapak
2025-12-11 13:49 ` Dietmar Maurer [this message]
2025-12-12 7:31 ` Dominik Csapak
2025-12-11 13:54 ` Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mj1hszzp.3n38mpp0gfs00@proxmox.com \
--to=dietmar@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.