Blog post: "TypeScript Features to Avoid". As with any mature language, we have to make difficult decisions about which TypeScript features to use and which to avoid. Based on our experience, here are four recommendations about which features to avoid. executeprogram.com/blog/typescrip…
@exec_prog interesting analysis of the post youtu.be/tv17UPWDh2M
@exec_prog well, the reasoning for avoiding the “private” keyword is just ridiculous :) Enums - good advice, if you are trying to feed TS to JS tools, skipping the compilation step. Angular is built on decorators and it's a very widespread framework in big companies.
@exec_prog Typo here: Favor @somePrivateField over private somePrivateField.
@exec_prog Type-directed emit github.com/Microsoft/Type…
@exec_prog "const enums" are fully erased at run-time though.
@exec_prog I wish TS had Clojure keywords/Elixir atoms. function f(os: :ios | :macos) f(:ios) feels so much better than function g(os: "ios" | "macos") g("ios")