3 ms·
Here is a thought. Maybe no formatting characters should be allowed to be saved embedded in source code, and instead presentation filters should handle everyth
by kpil 9y ago
Here is a thought.
Maybe no formatting characters should be allowed to be saved embedded in source code, and instead presentation filters should handle everything related to formatting, documentation, etc.
It might work..
- hobo_mark 9y agoGit supports custom "clean/smudge" filters on push and pull exactly for this sort of things. Unfortunately neither github not gitlab consider them so your online diffs would look like a mess of you did that.
- CapacitorSet 9y agoIt looks interesting, but then one would have to define a normalization for the AST - either something like an XML printout of the AST, or a standard formatting for source code (perhaps whitespace-only minification?). It would also pose an issue when presenting code in "dumb" media (eg. a txt file).