Macros like $COPY_SRC$ need Inspector to fully define their parameters
I wonder whether anybody thinks like me that macro parameters should not be typed in Inspector window but rather in the editor ? For example currently the actual useful code being copied by $COPY_SRC$ is written in Inspector and the dummy code is written in the editor. I suggest it would be better to write them both into the editor. I think it would make it more obvious what's going on in the code. But i'm not fully sure in my point, so tell me about advantages of the current approach if there are ones.
Please sign in to leave a comment.
Having the code which is generated shown in the inspector will result in very unreadable generators as well I think
really asking 'why' and not trying to argue.
In details, if you have complex node structure and you have only one projection view (main editor), you are forced to include all major features into this editor, making it unreadable in some cases, and leave simple things to intentions/actions. In templates, I think, you are focused on the structure of a template, and not on routines of macro implementation. Inspector gives you as language designer a possibility to hide complexity of node tree structure and attract your language user's focus to what you want him to focus to, in case of templates usage - template structure.
And to answer to your question below, you can always propose new features in MPS by youtrack.
Jens