-
Notifications
You must be signed in to change notification settings - Fork 102
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
ob-rustic evaluation with cargo script ? #267
Comments
And you like to use
so you can use it like
|
Can you maybe provide an example ? I'm not sure I understand. |
The example from the cargo-script documentation gives the idea, however I had a better experience with older releases of cargo-script. Both the repos and the cargo release looks presently in a bad shape :/
local independent evaluations of both code blocks should be correct, |
Hi there.
I'm still a noob with cargo but I would like to suggest a way to evaluate code blocks with
cargo script
.Here is why:
The two main use cases I see for org-babel are:
:noweb
or similar methods.As we always need to include or import sections of code but also to isolate fragments for testing purpose, eventually the first case get folded into the second one. But the correctness of a section of code isn't necessarily the same as an entire program, right ? The first example that comes to mind being an unused variable declared in one section, but actually used further (e.g. in an other code block).
My suggestion is that we should have two forms of evaluations:
cargo script
Before going through a complex tangle process, this would allow partial evaluation of single blocks while preserving the ability to program with :noweb. What do you think ?
The text was updated successfully, but these errors were encountered: