Avatar
omochimetaru 7/31/2023 3:14 PM
Hey all, I've been playing around with a design for function body macros, i.e., attached macros that can introduce, augment, or change the body of a function. Motivating examples include things like: @Remote // synthesizes a function body that does an RPC func f(a: Int, b: String) async throws -> String @Logged // adds logging on entry/exit...
👀 1
3:14 PM
関数本文つくったり、関数をラップした関数にするやつの話が出てきた
3:15 PM
型検査のタイミング?とかで悩ましい事があるらしい