You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 90% of cases when you want to initialize array with a default value, it will be an empty array
Having to go for tuple with initializer generates a lot of boilerplate
Dimava
changed the title
String definitions for default empty array = []
String definitions for empty tuple [] and for default empty array = []Oct 15, 2024
Request a feature
🤷 Motivation
In 90% of cases when you want to initialize array with a default value, it will be an empty array
Having to go for tuple with initializer generates a lot of boilerplate
💡 Solution
Add
= []
initializerThis will also allow to use a global
() => Array()
initializerThe text was updated successfully, but these errors were encountered: