Block Comment

This topic is specifically for discussions on the new APL64 Project currently in development. This topic is open for all to browse. However, to post, one must have a registered account on the APLDN forum only available to APL+Win licensee under a current APL+Win Subscription.

Moderators: Tech Support, phpbb_admin

Block Comment

Postby Ajay Askoolum » November 17th, 2018, 9:10 am

The facility to mark blocks of lines as comments would be handy; I am thinking of a marker to indicate the start of the block and another to indicate the end of the block of lines.

In C# terms,

- the starting marker is /*
- the end market is */
- the lines in between are treated as inline comments.

Currently, you have to comment blocks by
- either commenting each line manually
- or highlighting the block of lines and pressing Ctrl + / (Ctrl + Shift + / to remove comment).

The reason for this request is this: if you are writing multi-line inline documentation within a function, the leading ⍝ becomes intrusive.

I concede that this may not be that straightforward in a line based language.
Ajay Askoolum
 
Posts: 773
Joined: February 22nd, 2007, 2:16 am
Location: United Kingdom

Re: Block Comment

Postby Davin Church » November 17th, 2018, 12:31 pm

I agree that a line-based language like APL wouldn't fit well with block-based comments, and I can't think of a reasonable way to make such a language-level change. OTOH, I don't personally find leading lamp characters to be intrusive.
Davin Church
 
Posts: 577
Joined: February 24th, 2007, 1:46 am


Return to APL64 Project

Who is online

Users browsing this forum: No registered users and 1 guest

cron