January 2018
— Iterators are a great example of type safety in practice, because they standardize a data structure's serialization, meaning the code which prefers to rely on iterators is "more" type safe
Message permanent page
People at my workplace say that adding something i.e type safety to current workflow and adopting to that will slow it down
— And in a way it is thinking over something that i rather not have without considering type safety so there is some cost of time
— Now how much it would be and the will benifits outweigh the cost that i don't know yet
— Where is the time cost?
— Type safety in JS can be incrementally added
— So it's optional everywhere
— Additional step of thinking and adding type safety where its good to have but not needed
— Yeah that's true
— Which step?
— I don't see it
— Well i don't yet do type safety