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

log(struct) #6950

Closed
eladb opened this issue Jul 26, 2024 · 1 comment · Fixed by #7018
Closed

log(struct) #6950

eladb opened this issue Jul 26, 2024 · 1 comment · Fixed by #7018
Assignees
Labels
✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl

Comments

@eladb
Copy link
Contributor

eladb commented Jul 26, 2024

Use Case

I'd like to be able to just log (data) structs:

struct Foo {
  bar: str;
}

let foo = Foo { bar: "hello" };
log(foo);

Proposed Solution

N/A

Implementation Notes

No response

Component

No response

Community Notes

  • Please vote by adding a 👍 reaction to the issue to help us prioritize.
  • If you are interested to work on this issue, please leave a comment.
  • If this issue is labeled needs-discussion, it means the spec has not been finalized yet. Please reach out on the #dev channel in the Wing Discord.
@eladb eladb added ✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl labels Jul 26, 2024
@eladb eladb changed the title log struct log(struct) Jul 26, 2024
@tsuf239 tsuf239 self-assigned this Aug 14, 2024
@mergify mergify bot closed this as completed in #7018 Aug 14, 2024
mergify bot pushed a commit that referenced this issue Aug 14, 2024
fixes: #6950
we can now log structs that all of their fields are stringable

## Checklist

- [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted)
- [ ] Description explains motivation and solution
- [ ] Tests added (always)
- [ ] Docs updated (only required for features)
- [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing

*By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
@monadabot
Copy link
Contributor

Congrats! 🚀 This was released in Wing 0.82.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request needs-discussion Further discussion is needed prior to impl
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants