![Can anyone explain why I have to initialize my two variables like this? Why cant I write them like this: beansList: [String] ? What does the "()" do? : r/swift Can anyone explain why I have to initialize my two variables like this? Why cant I write them like this: beansList: [String] ? What does the "()" do? : r/swift](https://i.redd.it/4lo54p1k6sv61.png)
Can anyone explain why I have to initialize my two variables like this? Why cant I write them like this: beansList: [String] ? What does the "()" do? : r/swift
![c++ - Using "new" with initializer_list does not assign string values, while int values work - Stack Overflow c++ - Using "new" with initializer_list does not assign string values, while int values work - Stack Overflow](https://i.stack.imgur.com/QJKHM.png)
c++ - Using "new" with initializer_list does not assign string values, while int values work - Stack Overflow
![Bitesize Modern C++: Uniform initialization - Sticky Bits - Powered by FeabhasSticky Bits – Powered by Feabhas Bitesize Modern C++: Uniform initialization - Sticky Bits - Powered by FeabhasSticky Bits – Powered by Feabhas](https://i0.wp.com/blog.feabhas.com/wp-content/uploads/2015/07/image_thumb.png?resize=467%2C208)