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

lang: funcs: core: fmt: Add variant verb for printf #675

Merged
merged 1 commit into from
Oct 11, 2021

Conversation

purpleidea
Copy link
Owner

There's no reason we can't support a %v variant verb. Of course it makes
type unification more difficult, and certain uses of this will produce
unsolvable situations, but it's useful for debugging, and fun to have.

There's no reason we can't support a %v variant verb. Of course it makes
type unification more difficult, and certain uses of this will produce
unsolvable situations, but it's useful for debugging, and fun to have.
@purpleidea
Copy link
Owner Author

/cc @frebib =D

@purpleidea purpleidea merged commit e9791ff into master Oct 11, 2021
@purpleidea purpleidea deleted the feat/printf-variant branch October 11, 2021 05:00
anotherstr => fmt.printf("the %s is: %d", "answer", 42),
}

$format = "a %s is: %f"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#672 would help with this, if it doesn't already work as expected

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This example (and the other one which are both merged now) work as expected.

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants