Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is calling external executables type check ? #111

Open
danielo515 opened this issue Nov 16, 2022 · 2 comments
Open

Is calling external executables type check ? #111

danielo515 opened this issue Nov 16, 2022 · 2 comments

Comments

@danielo515
Copy link

Hello.
Thank you for this great idea.
I was looking for a way to write, not only easier POSIX scripts, but if possible, to also have them be type safe. It will be enough to avoid typos in command names and make sure the variables contain the right kind of values.
Are the terms that call external programs checking the names in some way? Is there any option to do such thing? I understand that there should be a way to call arbitrary binaries, but having some of the most common ones be "built-in" will also be very nice.

Regards.

@smondet
Copy link
Member

smondet commented Nov 16, 2022

yes, but maintaining the portability of those things is not easy :)

we've tried a bit see for instance, grep is wrapped there to fit in a nicer API:
https://github.com/hammerlab/genspio/blob/master/src/lib/EDSL.ml#L438

more of those are welcome in PRs!

@danielo515
Copy link
Author

danielo515 commented Nov 20, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants