occivink / kakoune-snippets

Snippet support for kakoune
The Unlicense
48 stars 6 forks source link

Dependency section #2

Closed JJK96 closed 5 years ago

JJK96 commented 5 years ago

Maybe it is a good idea to include a dependency section. For a starter it seems to depend on perl.

occivink commented 5 years ago

Right, I figured I would document all this stuff before I merge it in master

JJK96 commented 5 years ago

That's a sane decision, sorry for being so quick

andreyorst commented 5 years ago

By the way, why Perl?

occivink commented 5 years ago

No particular reason, being an interpreted language makes it easy to distribute and it's geared towards text processing. I also knew a bit of perl from writing my gdb script (which I ported from awk for similar reasons). It could have been python, but I don't know it very well and I generally have a poor opinion of it (but maybe that's misguided). Lua could be a contender too and I know it better, but the language is not that strong for text processing (limited "patterns" instead of regex).

It's not a particularly good language to write in imo (the typing, error handling and terse syntax) but it does the job for text processing.