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

Value formatting shorthand #1

Closed
2 tasks done
Tamschi opened this issue Oct 5, 2020 · 0 comments · Fixed by #4
Closed
2 tasks done

Value formatting shorthand #1

Tamschi opened this issue Oct 5, 2020 · 0 comments · Fixed by #4
Labels
accepted This will be worked on type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Milestone

Comments

@Tamschi
Copy link
Owner

Tamschi commented Oct 5, 2020

The current syntax for printing out a value as text node is {bump_format!("{}", value)}, which is quite verbose.

It can be reasonable shortened to something like !{value}, which would also automatically imply the bump parameter.

Automatically formatting all values returned by {} blocks is not ideal, since that simpler syntax should be reserved for returning Nodes with less syntactic sugar.

  • Add !{value} shorthand formatting syntax
  • Adjust the Counter example in README.md.
@Tamschi Tamschi added type: feature Brand new functionality, features, pages, workflows, endpoints, etc. accepted This will be worked on labels Oct 5, 2020
@Tamschi Tamschi added this to the v0.1.0 milestone Oct 5, 2020
@Tamschi Tamschi closed this as completed in #4 Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted This will be worked on type: feature Brand new functionality, features, pages, workflows, endpoints, etc.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant