News for hackers. Stuff that matters.
Re:What’s New in Swift 5.2 by Cyph0n on Thursday February 06, 2020 @06:31PM (#22261605)
Sorry, but can someone explain the usecase for callAsFunction?

I have seen something similar before in Python where a class implements __call__, but I have never needed to use it.

Re:What’s New in Swift 5.2 by lazyvar on Thursday February 06, 2020 @10:46PM (#22263054)
You hit the nail on the head. `callAsFunction` was introduced for Swift in order to interop with Python for the TensorFlow project.