News for hackers. Stuff that matters.
Re:TypeScript 3.7 Beta by zhirzh on Wednesday October 02, 2019 @04:53AM (#21134496)
I'd say it is a design smell and not necessarily code smell. Any API or data interface should try to keep "optional keys" at a minimum.

Depending on the language, `a.b && ...` could be checking either or both of the following:

- does `a` have key 'b'? - is `a.b` truthy?

Re:TypeScript 3.7 Beta by jiofih on Wednesday October 02, 2019 @02:44PM (#21139524)
Tell that to the team that created protocol buffers.