If ) would be the closer then it would not be necessary to define NB.( .
Note would do to create multiline comments. It would also provide an
alternate way for making multiline definitions in a {{ }} definition.On Wed, Sep 1, 2021, 12:53 AM Ric Sherlock <[email protected]> wrote: > I like the proposed: NB.( > Would it be closed with: ) > Apart from more consistent "naming", what are the other benefits of > multiline comments as a feature that currently aren't provided by {{)n or 0 > : 0? > > Currently I use Note, a variation on 0 : 0 from the stdlib ( > https://code.jsoftware.com/wiki/Standard_Library/stdlib#Note) as mentioned > in the other thread by Chris > Note '' > this line is a comment > so is this one > ) > > There is shortcut support for this in the JQt editor (Toggle using > Ctrl+Shift+/) > The J extension for VSCode will also highlight these sections as comments > (Alt+Shift+a to set as Note) > > > On Wed, Sep 1, 2021 at 3:49 AM Henry Rich <[email protected]> wrote: > > > The comment delimiter will always be NB. and comments will always run to > > the end of the line. > > > > Multiline comments would be useful. So far we use 0 : 0 or {{)n to get > > that effect. Having NB.( or the like to start a multiline comment would > > be useful. We can keep this topic open. > > > > Henry Rich > > > > On 8/31/2021 11:41 AM, Hauke Rehr wrote: > > > So this is open for silly ideas? > > > Multiline comments ought to be nestable. > > > Personally, I like the way lua does it. > > > Both multiline strings and comments work like this: > > > [[ > > > an example string > > > spanning two lines > > > ]] > > > [=[ > > > … and > > > another one > > > ]=] > > > [====[ > > > as many = signs as you want, > > > so [[nesting]] is done by increasing = count > > > ]====] > > > -- a single line comment > > > --[[ > > > an example comment > > > spanning two lines > > > ]] > > > --[=[ > > > … and > > > another one > > > ]=] > > > --[====[ > > > which may be --[[nested]] > > > the same way; > > > ]====] > > > > > > > > > Maybe using {={ … }=} etc? > > > It doesn’t need to be = but I like that way > > > of making comments nestable. > > > > > > > > > > > > Am 31.08.21 um 17:28 schrieb Henry Rich: > > >> I have wanted this often. If we could reach consensus on what the > > >> best end-marker would be, I'll look into putting it in. > > >> > > >> Henry Rich > > >> > > >> On 8/31/2021 8:27 AM, 'Rudolf Sykora' via Programming wrote: > > >>> Dear list, > > >>> > > >>> > > >>> if I load a (longer) script, I sometimes want to ignore a part of it > > >>> beyond a certain line. Is there a way to achieve that gracefully? (I > > >>> sometimes just add something syntactically wrong to stop there, on an > > >>> error). > > >>> > > >>> > > >>> Thank you. > > >>> Ruda > > >>> > ---------------------------------------------------------------------- > > >>> For information about J forums see > http://www.jsoftware.com/forums.htm > > >> > > >> > > > > > > > > > -- > > This email has been checked for viruses by AVG. > > https://www.avg.com > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
