Comments in Dfns
Posted: Thu May 20, 2010 12:11 pm
In a recent Dyalog email it was noted that:
"We have been asked by several customers to allow comments to appear after the closing "}" in a dfn. Allowing this is a not insignificant piece of work, and has been added to the wish list for a future release of Dyalog APL."
I imagine this is signficant work because the closing brace ends the function, and thus by definition comments after the last brace are outside of the function and cannot simultaneously be inside the function. It would seem that should end the discussion right there. But if you are going to allow them after the last brace, why not before the first brace?
I hope this turns out to be one of the cases where the team says "well, if we do A, we should also do B, but we obviously can't do B, so lets not do A".
Really, this strikes me as a very bad idea, and a source of new problems.
What is the reason that simply adding comment lines within the body of the function, at the end, but before the last brace, won't do?
"We have been asked by several customers to allow comments to appear after the closing "}" in a dfn. Allowing this is a not insignificant piece of work, and has been added to the wish list for a future release of Dyalog APL."
I imagine this is signficant work because the closing brace ends the function, and thus by definition comments after the last brace are outside of the function and cannot simultaneously be inside the function. It would seem that should end the discussion right there. But if you are going to allow them after the last brace, why not before the first brace?
I hope this turns out to be one of the cases where the team says "well, if we do A, we should also do B, but we obviously can't do B, so lets not do A".
Really, this strikes me as a very bad idea, and a source of new problems.
What is the reason that simply adding comment lines within the body of the function, at the end, but before the last brace, won't do?