Elektrine lite

← Feed

@terts@mastodon.online

Post #2564785

2026-04-29 16:06 UTC

@Ambraven@social.mochi.academy The trick is to declare (but not assign!) a variable in the outer scope and then only assign to it in the else branch. That ensures that you can give out a reference with the lifetime of the function.

Replies (0)

No replies.