next: Interpolation of Field Names


String and bytes literals support interpolation.

Any valid CUE expression may be used inside the escaped parentheses. Interpolation may also be used in multiline string and byte literals.


"You are \( cost - budget ) dollars over budget!"

cost ::   102
budget :: 88

$ cue eval interpolation.cue

"You are 14 dollars over budget!"