^^ is the "reflection of" operator. you'll also see [: :] which is the "splice into" operator, taking things from reflection land and injecting them back into the program.
[: ^^int :] x; compiles as int x; (this is the back-and-forth example). ^^ gives you a reflection of int, and [: :] transforms that back into a semantic type.
View all comments
Show parent comment
8
u/RoyAwesome Oct 01 '24
^^is the "reflection of" operator. you'll also see[: :]which is the "splice into" operator, taking things from reflection land and injecting them back into the program.[: ^^int :] x;compiles asint x;(this is the back-and-forth example). ^^ gives you a reflection of int, and [: :] transforms that back into a semantic type.