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



--
----------------------
mail written using NEO
neo-layout.org

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to