For me at least the benefit of not having stringly-typed identifiers is that IDEs and linters can easily inspect and autocomplete these for you - http://imgur.com/ub29AqD.
It's the same reason why Swift's enums are so awesome. The point is not that it makes typos easier to detect, but to make typos impossible.
10
u/mediumdeviation JavaScript Gardener May 15 '17
For me at least the benefit of not having stringly-typed identifiers is that IDEs and linters can easily inspect and autocomplete these for you - http://imgur.com/ub29AqD.
It's the same reason why Swift's enums are so awesome. The point is not that it makes typos easier to detect, but to make typos impossible.