[swift-evolution] Pitch: Cross-module inlining and specialization
nevin.brackettrozinsky at gmail.com
Mon Oct 2 16:19:22 CDT 2017
I am hugely in favor of an @inlinable attribute, and I look forward to its
arrival with relish!
1. I think “inlinable” is the right spelling: it indicates that something
is *able* to be inlined.
2. If I want to pass an @inlinable function as an argument (say, to map or
filter) can I do so directly or must I use a closure which calls the
3. Even though @inlinable will have no effect on declarations which are not
public, we should still allow it to be placed there. That way when the
access level is later changed to be public, the attribute is already where
it should be. This is similar to why we permit, eg., members of an internal
type to be declared public, which was discussed and decided previously on
Other than that the proposal looks great, thanks for writing it up.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution