[swift-dev] How is `static` a contextual keyword?

2017-05-11 Thread Jose Cheyo Jimenez via swift-dev
Hello Swift Dev, `class` is a contextual keyword because it can be used to declare an object and declare a class variable. Right? I believe static can only be used inside Classes, Structs, Enums, Protocols and Extensions so how is `static` a _contextual_ keyword? Is there a reason why static

Re: [swift-dev] [SourceKit] static modifier

2017-05-08 Thread Jose Cheyo Jimenez via swift-dev
I filed this bug for anybody interested: https://bugs.swift.org/browse/SR-4834 > On May 7, 2017, at 1:56 PM, Jose Cheyo Jimenez wrote: > > Hi, > I am trying to understand why sourceKit is reporting `static` as a > "source.lang.swift.syntaxtype.keyword"

[swift-dev] [SourceKit] static modifier

2017-05-07 Thread Jose Cheyo Jimenez via swift-dev
Hi, I am trying to understand why sourceKit is reporting `static` as a "source.lang.swift.syntaxtype.keyword" instead of a “source.lang.swift.syntaxtype.attribute.builtin”? All the modifiers in this list (except for class and static) are `builtin` https://developer.apple.com/library/content/do

Re: [swift-dev] Bridging Python Packages to Swift

2016-07-02 Thread Jose Cheyo Jimenez via swift-dev
Hi Muhammad, I am not an expert either but here is what I would do if I were you. Go look at xamarin/ mono open source project to see how they bind objc and Java libraries to c#. Once you understand that then you would need a version of python (cpython or another typed Python version) that you