Hi Racketeers,
Not sure if this is the right place, since this question is mostly about
Scheme, but I figured there will be a lot of seasoned schemers here
who will be well positioned to help me out on this. (Feel free to redirect
me to a more appropriate forum if needed, I have already asked this in
comp.lang.scheme, but it looks inactive.)
If you have used git, you would have noticed the diff hunks have
this format:
@@ -k,l +n,m @@ TEXT ---> this is the hunk header
+ something added
- something removed
...
With most other languages, git provides built-in diff drivers,
so if you used the diff driver for python you would get the
enclosing function or class name in the location of TEXT
above. Similarly other language drivers have important forms
shown alongside the hunk header to make the give the diff a
useful landmark.
I have been working on a patch for git to introduce a driver for scheme[1]
as well, but I needed some opinions from more experienced schemers.
For now I am only taking the following forms for the hunk headers:
- `define`
- `define-syntax`
- `define-*` (any other define form that may have been introduced via macro)
Is there any other form that would make a useful landmark for hunk headers
that I should include, that will work well across most Scheme implementations?
Regards
Atharva