-
Notifications
You must be signed in to change notification settings - Fork 96
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
[Suggestion] constant declaration #233
Comments
im confused. is this about creating a |
Sorry is about creating a |
@CymDeveloppement so you propose to introduce constants. I don't see any reason not to do add it to Amber. Not that much important for now though. I'll mark it as a Stable Release issue. |
this should be implemented as the |
i would propose this being implemented as a function that is called each time the value is retrieved - it ensures runtime safety as well as compile checks
const_FIVE() {
return 5
} |
it depend if it must be accessible from bash, but in bash function is not a constant, this script :
output :
in bash constant can be declared with |
My proposition:
|
i think maintain maximum of compatibility with |
Now we have @CymDeveloppement functions like |
I work on a colored text function but color code in bash is not explicit
this output italic green text.
i think is more comprehensive if we can write :
text("test", _bash_foreground_green_, _bash_italic_)
maybe in future external lib can declare constant
The text was updated successfully, but these errors were encountered: