[swift-users] Why can't I declare subscript<T> ?

Jens Alfke jens at mooseyard.com
Mon Apr 11 17:07:34 CDT 2016


> On Apr 11, 2016, at 2:08 PM, Trent Nadeau <tanadeau at gmail.com> wrote:
> 
> This is a known language limitation. See https://bugs.swift.org/browse/SR-115 <https://bugs.swift.org/browse/SR-115>. It looks like someone started to implement it, but it has been dormant since December.

Thanks, good to know. The fork <https://github.com/stephencelis/swift/commits/generic-subscripts> with the implementation has been active more recently (Feb 29) but still looks incomplete.

—Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160411/7ab60c48/attachment.html>


More information about the swift-users mailing list