@fcwilt +1 from me but at the moment {} brackets are used for putting variables from object model into gcode commands.
Anyway i think that more similiar the conditional code is to c++ and less to python is for me a big yes....i have no problem with this type of language but i hate having indentation to determine the loop/function start/end.
I would give a function its proper "ender" so for example "loop" for while loop and so on.