You mean writing the function body? I was not talking about the function body, but about getting the declaration correct. (The bad error messages and lack of real time verification surely contribute here.)
PS is more powerful than Bash, it really should be faster to write a function body in it.