https://github.com/catern/bashcc
https://github.com/catern/bashcc
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/catern/bashcc
- Owner: catern
- Created: 2018-03-11T19:09:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-19T02:55:53.000Z (about 8 years ago)
- Last Synced: 2025-03-24T15:48:24.962Z (over 1 year ago)
- Language: TeX
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
#+title: bashcc: Multi-prompt one-shot delimited continuations in bash
Among functional programmers,
continuations are well known for the influence they have on the simplicity and understandability of a program.
And among sysadmins,
the bash programming language is renowned for the maintainability of programs written in it.
These two powerful techniques have not yet been joined together before this moment.
This library will provide a more familiar programming environment for functional programmers in bash,
and give bash programmers access to the advanced abstraction techniques of modern functional languages.
* Improvements to be done
** use bash's dynamic scope
bash has a great feature which is sadly unappreciated: dynamic scope.
This is activated by using "local" before a variable assignment.
We should employ this to make our test programs easier to understand.
* inspirations
- https://www.cs.indiana.edu/~dyb/pubs/LaSC-10-3-pp223-236.pdf
- http://okmij.org/ftp/continuations/caml-shift-journal.pdf
- http://www.bobhobbs.com/files/kr_lovecraft.html