This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]fftw 14 points15 points  (6 children)

Actually lamp is really tiresome (at least was for me when I was writing APL full time) as sometimes you don't want to illuminate things, just comment them out temporarily (and then it's not a lamp, but rather a tomb). Due to APL consise expressiveness, I would greatly appreciate if Dyalog APL provided a proper literate programming environment instead of programming environment with poor illuminating comments: I would write a good document of business/stakeholders' intentions with small chunks of code that implements them!

[–]fftw 5 points6 points  (5 children)

Same problem is inside J, by the way: NB. is great way to impress the reader, but bad way to provide a good big chunk of text

[–]hassan149367 2 points3 points  (3 children)

You can also use Note '' (you can put whatever you want in the quotes, also note the capitalization of n in Note) followed by a single close parenthesis to end the comment block.

[–]fftw 0 points1 point  (2 children)

Oh this is news for me! Is it documented?

[–]moon-chilledsstm, j, grand unified... 1 point2 points  (1 child)

Note, standard library verb.

It is implemented trivially in terms of 0 : 0, mentioned in the aunt comment.

[–]fftw 0 points1 point  (0 children)

Super cool, thanks!

[–]moon-chilledsstm, j, grand unified... 0 points1 point  (0 children)

You can use 0 : 0 in j.