[…] LaTeX ignores whitespace, so you can just use a formatter to space out your code and ensure the curly braces. This is not even an option in typst, which uses the space as an escape character.
I'm not sure I exactly follow what you mean. Could you elaborate?