3 ms·
Well, explicit is better than implicit when there is a very real chance of missing the implicit, especially when just going over the code quickly. The return e
by bryanrasmussen 10y ago
Well, explicit is better than implicit when there is a very real chance of missing the implicit, especially when just going over the code quickly.
The return example is a good case of this, reading over code you can easily miss that those particular brackets are supposed to be a return.
I think though that this.state = { list}; is just as easily understandable as this.state = { list: list }; once you are familiar with the syntax, and may be even more easy to understand due to the being easier to read.