Smarter than emacs? Vim. :)
editor wars aside, I’m having a hard time
imagining any editor smarter than these two
They may call themselves “smarter” but mostly
that translates to “more cumbersome”.
folds are natural in any coding editor,
and I guess Tim Pope would come up with a solution
showing the comment associated with the token under
the cursor (if any) in no time; maybe I’ll try and
write some addition to the J file type plugin even
though I’m far from expert at vimscript –
/if/ this syntax should ever be supported.
Am 28.04.22 um 09:56 schrieb Ed Gottsman:
Jan-Pieter,
I like that file format a lot. Like JSON, it’s human- and machine-readable.
Further, a “slightly smart” editor (here I’m thinking perhaps of emacs macros)
could toggle between it (one token per line with comments) and a conventional
view (all tokens on one line, no comments). A much smarter editor might have
other, more sophisticated display/edit formats that would show both tokens and
comments.
Ed
Sent from my iPad
On Apr 28, 2022, at 8:49 AM, Jan-Pieter Jacobs <janpieter.jac...@gmail.com>
wrote:
I actually was intending for quite a while to propose an extension to
comments along the lines of the suggestions in this thread:
to use ... as line continuation indicator that turns everything after it up
to and including the next line break to be considered comment, and still
considers the line to continue (Matlab does this the same, IIRC). It could
be thought of as a non-line-breaking version of NB. .
For instance (silly example):
avg =: ... averag operator
+/ ... sum
% ... divided by
# ... length
Now, it's certainly overkill for this tiny example, but I think it could be
valuable for longer trains.
Advantages of ... :
- not in use at the moment
- clear meaning (i.e. more code to follow)
- fits in with J word formation rules
- easy for communication to non-J experts
- length the same as NB.
Jan-Pieter
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
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