-
Notifications
You must be signed in to change notification settings - Fork 13
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
[PROPOSAL] include
functions
#128
Comments
include
functionsinclude
functions
include
functionsinclude
functions
Hey. These align well with Jule's compile-time capabilities and would likely be provided under I'm marking this proposal as "Active". If you wish, you can start working on this. I'm currently working on a few major bug fixes for the compiler. After completing it, I can devote time to implement this proposal. Note The |
include
functionsinclude
functions
Yes, I know. That's why I said that my proposal is not about
Thanks. I'll start working on this :) |
Detailed description
Hey. I think having a function that would "include" data from files at compiletime (i.e. "embed" the file) would be really useful.
We don't have to have "include as code" (see Rust's
include!()
). The ones I care about are Rust'sinclude_bytes!()
andinclude_str!()
. See the context below.Opinions?
Context
Rust std's implementation:
https://doc.rust-lang.org/std/macro.include.html
https://doc.rust-lang.org/std/macro.include_bytes.html
https://doc.rust-lang.org/std/macro.include_str.html
Additional information
The usage would look something like this:
Outputs the contents of
test.txt
converted tostr
, read on compiletime.If there are no objections, I'd be happy to work on this.
The text was updated successfully, but these errors were encountered: