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

Docs and Examples #1

Open
ChrisCates opened this issue Mar 30, 2019 · 4 comments
Open

Docs and Examples #1

ChrisCates opened this issue Mar 30, 2019 · 4 comments

Comments

@ChrisCates
Copy link

Spicy project, I like it.
Would be nice to have some docs and examples to see how to use it in the wild. 💯

@eridal
Copy link
Owner

eridal commented Apr 1, 2019

Hey, very nice to hear this got your interest!

I created this project a few years ago when I was curious about how the _ functions would look like on the shell.

The shell itself is quite a bit different from a programming language as execution environment, specially in terms of how the different processes share data. In a language you have input parameters and return values, while in the shell you have stdin/out/err .. which makes hard to implement the functions.

I was able to start making things like map, filter, each, but as I was building those I was also learning more about its limitations, so I decided not to purse and pause the implementation.

I still wonder.. is it possible to implement such library?

@ChrisCates
Copy link
Author

ChrisCates commented Apr 2, 2019 via email

@eridal
Copy link
Owner

eridal commented Apr 23, 2019

Hey, this sounds interesting!

How would such preprocessor work? Could you please show some example about what you were thinking?

@ChrisCates
Copy link
Author

Absolutely, below is a quick 2-minute sketch of how I think it would work at a high level:

const _= require('loda.sh');
_.print('Hello World');

Result:

echo 'Hello World'

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