Previous: Exceptions, Up: Syntax


3.1.10 Dynamic code evaluation

Kite supports the eval construct, which allows one to dynamically execute code:

     eval "\"Hello, human.\"|print";

The parameter after eval can be any valid Kite construct that evaluates into a string. Of course, an exception will be thrown if the string cannot be parsed.