You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
see #431
Describe the solution you'd like
i think that we should add rust-like compile time macros, like env!() in this case which should enable the user to access compile time environment variables.
for the env!() macro, i suggest the following syntax:
fun env(variable: Text, default: Text): Text {
// returns the specified variable if it exists, and default if it is set and the env variable is not available.
// if default value is not set and variable is not available, it will throw a compile time error
}
Is your feature request related to a problem? Please describe.
see #431
Describe the solution you'd like
i think that we should add rust-like compile time macros, like
env!()
in this case which should enable the user to access compile time environment variables.for the
env!()
macro, i suggest the following syntax:which should be used like this:
which should be compiled to something like this (assuming
COMPILE_COMMIT
is set toa8c3083f
:Describe alternatives you've considered
#431 (comment)
The text was updated successfully, but these errors were encountered: