Pitch: Inline @convention(...) attributes for closures

I could see this being useful. Note, though, that with @Jumhyn's proposal for placeholder types, you could do this:

let closure: @convention(c) _ = { int1, int2 in 
    return int1 + int2
}

or

let sortedArray = sort(array, { $0 < $1 } as @convention(block) _)
5 Likes