• 0 Posts
  • 10 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle






  • I'd argue the macros are quite bad:

    • Declarative macros are hard to read, same level as regex
    • Procedural macros require to write a new crate with a ton of boilerplate, sometimes for stuff conceptually really simple (like hash is: apply the same function to every field, then compose the results)

    I agree, though, that it's better there're here than nothing. It's just that there is to be a better solution.




  • I don't like/use the class keyword in JS, because I quite like the paradigm with prototypes & stuff, and that keyword tries to make it fit into a totally different paradigm, which doesn't really work IMHO.

    With TS, I find it even more useless, because I can use TS as a functional language, with POD, functions and interfaces only. I've written entire projects without ever using and needing this keyword, which is a proof IMHO that it's an unnecessary addition. Not sure how unpopular is my opinion tho 😅

    BTW, I've developped a few strats to have my own style in TS that I like quite a lot. I can tell more if you're interested.