News for hackers. Stuff that matters.
Re:Tricks I wish I knew when I learned TypeScript by handrous on Tuesday October 12, 2021 @02:12PM (#28843067)
Me, reading the link at the top of this thread: oh wow, those are really cool.

Me, reading this example: oh no, those all need to be added to our project's lint rules to make sure no-one uses them.

Re:Tricks I wish I knew when I learned TypeScript by chana_masala on Tuesday October 12, 2021 @03:43PM (#28844170)
Why would you prevent their usage? They're incredibly helpful
Re:Tricks I wish I knew when I learned TypeScript by handrous on Tuesday October 12, 2021 @05:54PM (#28845538)
I guess it'd be OK as long as everyone always accompanied such lines with a comment, with at least one line per symbol or character it's identifying & explaining. As all but the most trivial regexes warrant.