News for hackers. Stuff that matters.
Re:Why I'm not a React Native developer by objectiveariel on Saturday August 19, 2017 @04:18PM (#15055351)
You're missing the point. The fact that the language still allows you to write `p.isImmortal = true;` is the issue.
Re:Why I'm not a React Native developer by oceanswave on Sunday August 20, 2017 @07:31PM (#15060797)
And my linter, or flow, typescript will pick that up in the same way the compiler will. Just because tooling these days catches these things in 'type safe' languages doesn't mean it's not a pointer to a chunk of memory that's defined at runtime beneath it all.
Re:Why I'm not a React Native developer by coldtea on Saturday August 19, 2017 @05:40PM (#15055779)
Which won't do anything. p.isImmortal will still be the setter. So it's a non issue -- and the linter can catch the mistake anyway.