
... So at the end I personally would go with "no comments" but proper indentation, which make the code more readable.
I understand the concern about the source of truth but feel its possible to overcome this concern. I think mats idea has so much value its worth investigating. Let me share a concept I am working on.
Please bare with me as it will initially appear off topic.
I call it ghost tiddlers since shadow is taken. Basicaly it is a way of having one or more tiddlers behind any tiddler.
First imagin tiddlername having a matching tiddler $:/ghosts/tiddlername all annotations can go in this ghost tiddler. Now consider a field containing a unique tiddler serial number is used to link a tiddler to its ghosts so the tiddler title can change and retain the relationship to any ghosts. E.g. $:/ghosts/#sn/subtiddlername It is also possible to make a filter that can list a tiddler and all its ghosts for export. You could call these compound tiddlers.
With such compound tiddlers you could add content in this case annotations to the real tiddler via one or more ghosts. In effect giving you layered tiddlers.
I also discovered recently you can use tiddler serial numbers as you need them on demand.
Finally the view template can interrogate any tiddler with a serial number and locate and apply any ghost tiddlers at render time.
I hope this makes sense.
Regards
Tony
Tony
Mat's "solution" looks awkward and baroque IMO.
@TiddlyTweeter wrote:Mat's "solution" looks awkward and baroque IMO.
Ha! The thought of creating a baroque solution even sounds appealing.
What would you call a proposal for "no solution"?
I think this kind of rich text comment is even more interesting. I think I will add lots of this kind of rich text comment to my code, even Javascript code.