[swift-evolution] [Draft] @intendedcontext to hint at symbol relevance
Janosch Hildebrand
jnosh at jnosh.com
Thu Jan 7 17:30:24 CST 2016
Hi Félix,
Perhaps it might make more sense to model such non-binding extra information as doc comment fields instead of attributes.
From swift/Changelog.md:
> Three new doc comment fields, namely - keyword:, - recommended: and - recommendedover:, allow Swift users to cooperate with code completion engine to deliver more effective code completion results. The - keyword: field specifies concepts that are not fully manifested in declaration names. - recommended: indicates other declarations are preferred to the one decorated; to the contrary, - recommendedover: indicates the decorated declaration is preferred to those declarations whose names are specified.
>
This seems to be similar in spirit and I think it makes sense to separate such annotations from actual code.
> On 08 Jan 2016, at 00:15, Félix Cloutier via swift-evolution <swift-evolution at swift.org> wrote:
>
> Hi all,
>
> I'd like to share this draft for an @intendedcontext attribute: https://gist.github.com/zneak/e53494c38bb3739201ac <https://gist.github.com/zneak/e53494c38bb3739201ac>
>
> The purpose, broadly, is to help tools determine whether a (technically) visible symbol should be used where you have your cursor at or not. It could help with shorter autocompletion lists and linters.
>
> Félix
>
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
- Janosch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160108/a99502b1/attachment.html>
More information about the swift-evolution
mailing list