Follow

RT @nicklockwood@twitter.com

Interesting post from Brent Simmons here about use of let vs var by default.

I generally disagree, and I think most structs should have var properties by default, but there is some nuance to the decision about which to use: (thread) twitter.com/brentsimmons/statu

🐦🔗: twitter.com/nicklockwood/statu

I do agree with Nick here.
In *general* I endup using var for struct because it gives me the convenience without the drawbacks. Even when my brain tells me to start with `let` I quickly endup changing it.
But read the thread, the nuances are important ;)

Show thread
Sign in to participate in the conversation
Mastodon for Tech Folks

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!