The struct
keyword is redundant to declare anonymous structures
#23849
gchumillas
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
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.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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