It would be useful if the designer could check that the script is valid when saving or at least on exiting and provide a message.
I know checks it when you run the script inside the designer and then gives a message, but I don't always think to run it before saving. Especially if just removing one view.
I have often removed a view from a layout and forgot to check it is not referenced or missed it in a look through the script, I only find out when I try to compile the project.
Not a major issue, but just a wish.