Hi, I recently implemented multi line comment related things for emacs.
And there is a commentify function
For example, it converts following code
if true:
echo "foo"
else:
echo "bar"
to this:
#[
| if true:
| echo "foo"
| else:
| echo "bar"
]#
emacs needed characters (part of " |") to separate code and other comment part when emacs invokes adding/removing comment (shortcut key) for group of lines.
My question is what kind of characters should editors or IDEs use the part of " |"?
I think using same style is convenience to work with various editors or IDEs.
(To be clear, emacs can handle if there is no " |" separator in multi line comment. just remove #[ and ]# in that case)
Sorry @OderWat if I made you misunderstanding. I'm asking as an editor implementer for emacs' nim plagin. Regardless of our preference, people use various comment style. (please think about situation that you have to see co-workers' no organized and no aligned comment)
So, do you prefer this comment style? (No align spaces?)
#[if true:
echo "foo"
else:
echo "bar"]#
Yes... But I would probably use:
#[
if true:
echo "foo"
else:
echo "bar"
]#
Actually I think its about something like this:
#[ thats all not working
proc foo() =
echo #["foo"]# "foooooo????"
proc bar() =
echo "bar"
]#
# just temporary
proc foobar() =
echo "foobar" # or even "foba"
For sure I would not like to force people into using some strange comment style which uses multiline comments with "decorations"
For sure I would not like to force people into using some strange comment style which uses multiline comments with "decorations"
me either. I wouldn't force people to use multi line comment. I would provide a feature to remove other people's comment even if it's decorated.