[swift-evolution] [Draft] @intendedcontext to hint at symbol relevance
felixcca at yahoo.ca
Thu Jan 7 17:35:35 CST 2016
I wasn't aware of that. I'll revisit it some time later today or tomorrow.
> Le 7 janv. 2016 à 18:30:24, Janosch Hildebrand <jnosh at jnosh.com> a écrit :
> 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 <mailto: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.
>> swift-evolution mailing list
>> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> - Janosch
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution