News for hackers. Stuff that matters.
Re:What’s New in Swift 5.2 by oorza on Thursday February 06, 2020 @01:00PM (#22258406)
We have the exact same problem with Typescript. We've solved it with an extremely judicious use of the linter, which prohibits certain constructs, certain patterns, and tries its best to get rid of weird features. The first thing I thought when I read `callAsFunction` was "sounds like a new lint rule someone has to write to disable that garbage."

I'm not sure how invested your team is in Swift, but since we do nothing but Typescript, the investment in time (2-3 days for one the lead engineer) tweaking the linter has more than paid off ten-fold in the months since.

Re:What’s New in Swift 5.2 by vosper on Thursday February 06, 2020 @01:08PM (#22258484)
> We've solved it with an extremely judicious use of the linter, which prohibits certain constructs, certain patterns, and tries its best to get rid of weird features.

This is one of my concerns with adopting Typescript in my team. Would you please share more info about the kinds of things you prohibit, and why you chose them?

Re:What’s New in Swift 5.2 by STRiDEX on Thursday February 06, 2020 @02:08PM (#22259179)
I work at an all typescript shop and I really recommend checking out https://github.com/xojs/eslint-config-xo-typescript#readme as this is a full time open source developer that has to field all kinds of PR's from strangers. So it saves them time if the linter flags things they're trying to avoid.
Re:What’s New in Swift 5.2 by joshspankit on Friday February 07, 2020 @06:41PM (#22272378)
I have not looked in to Typescript myself yet, but I would say that an “AirBnB style guide”-type linter ruleset could make picking it up much easier.
Re:What’s New in Swift 5.2 by mikewhy on Thursday February 06, 2020 @01:59PM (#22259073)
It shouldn't be much of a concern if you're already writing JS, which usually already comes with judicious use of the linter.
Re:What’s New in Swift 5.2 by sezna on Thursday February 06, 2020 @01:36PM (#22258801)
Not the OP but what system are you coming from? If JS, then TS is a great improvement. If anything else...probably not going to be a fun time.
Re:What’s New in Swift 5.2 by zionic on Thursday February 06, 2020 @01:47PM (#22258922)
This. I'm already adding callAsFunction to my team's linter, should be a stupid simple match since you can block declaring the capability in anything.