Language Reference

Python interop

Mix Plain Language with Python when you need full control.

Interop rules

  • Valid Python lines pass through.
  • Import modules directly.
  • Prefer readability when possible.

Python lines in Plain Language

When a line is valid Python, the transpiler emits it unchanged.

interop.pln
import json
payload = "{\"name\": \"Ada\"}"
user = json.loads(payload)
print user["name"]

Interop guidance

  • Use Python when a library has no plain syntax yet.
  • Keep mixed sections grouped for readability.
  • Document Python blocks so teammates know why they exist.