Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is akin to saying "Every C++ library should be written in Objective C."

EDIT:

Hey people down voting me; it literally is the same. C++ is a standard, JS is a standard. TypeScript is (like Objective-C) a compatible alternative.



"C++ is a standard, JS is a standard." seems to miss the point.

a better (but still imperfect) comparison would be suggesting to rewrite c libs in c++, given the latter's somewhat better type safety.


Absolutely not. Objective-C started out as a superset for C. Emphasis on 'started out'. It has nothing to do with C++. You can combine the two of them but they are hardly compatible. Messaging on the side of Objective-C vs. custom operators on the side of C++ being just one example.


Yeah and TypeScript has Types and JS doesn't. So, there's incompatibilities there too. Granted, the relationship is backwards so maybe I should have reversed the comparison, but it still stands. This was an asinine suggestion.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: