The struct
keyword is redundant to declare anonymous structures
#23849
gchumillas
started this conversation in
Ideas
Replies: 2 comments 5 replies
-
A |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the clarification. I really like the // this code doesn't compile
book := struct {
title: 'Allice in Wornderland'
isbn: '1503222683',
year: 1865
} |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe the
struct
keyword is redundant, as the{
symbol already suggests an anonymous structure. For example, without thestruct
keyword we could write code in a more concise way:Beta Was this translation helpful? Give feedback.
All reactions