Swift: auto-closures must be visible at call site

Originator:marcel.weiher
Number:rdar://17234355 Date Originated:
Status:open Resolved:
Product:Swift Product Version:
Classification: Reproducible:
 
Auto closures are a neat feature, akin to Smalltalk 76's open-colon arguments.  However, unlike Smalltalk 76 they are defined by the callee and not the caller, and more importantly, invisible at the call-site.

This behavior is quite unexpected and absolutely needs to be indicated at the call site, for example with the open-colon syntax that Smalltalk-76 uses.  Even C Macros at least have a convention of ALLCAPS() so that the user has an idea that the expression they are passing is not evaluated and then passed, but passed and evaluated (or not!) by the callee.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!