Me too. It’s currently impossible. I haven’t seen any accepted proposals either. I would love to use the capture syntax that’s gonna be used for anytype:
I wonder how many @builtin functions could become just regular std library functions if this syntax were adopted. Of course I’ve no idea of the tradeoffs in language complexity, just musing.
I think a big part of builtins being builtins is that this allows the standard library to be optional and implemented in userspace, if the language put a considerable amount of these builtins into the standard library, then you would likely no longer be able to use the language to write applications that don’t depend on the standard library.
But I still would like it if we eventually get a way to write functions that use the result location type.
Having builtins gives us a clear separation between the compiler and the standard library, that is why I like it. I find it way better than other languages which create annoying magic syntax or subtly hardcode the standard library into the compiler.