On Fri, Jan 20, 2017 at 7:24 PM, Saagar Jha via swift-users <
swift-users@swift.org> wrote:
> closures, which Java lacks and must make up with anonymous classes.
Java has support for lambdas since Java 8 (2014).
___
swift-users mailing list
swift-users
This will fail to compile; it’s a bit too close to Java to work. In particular,
in Swift you can’t pass a class into a function like invokeLater does; instead,
Swift uses closures, which Java lacks and must make up with anonymous classes.
Saagar Jha
> On Jan 20, 2017, at 4:16 PM, Ethin Probst v
Is the following code valid swift 3 (and later) code? If not, is it
translatable to swift 3? This was translated using Elements Oxidizer
(http://elementscompiler.com/elements/oxidizer.aspx) using the Hello
World Java Swing application
(https://docs.oracle.com/javase/tutorial/displayCode.html?code=h
> On Jan 20, 2017, at 9:39 AM, Jordan Rose via swift-users
> wrote:
>
> Hi, Rien. Libraries don’t support bridging headers because the client of the
> library has to be able to import the header, and arbitrary bridging headers
> may conflict. (This is actually the primary purpose of modules f
I may be missing something here, so please bear with me...
The client of the lib only has to see the headers that describe the lib, not
the headers of the files that were used to create the lib.
Or are you referring to a case were the lib also exposes the headers of the
libs that were used to cr
Hi, Rien. Libraries don’t support bridging headers because the client of the
library has to be able to import the header, and arbitrary bridging headers may
conflict. (This is actually the primary purpose of modules for Objective-C: to
declare a group of headers that are self-contained—besides w
I noticed something strange about Xcode and SPM concerning the capability to
generate Libraries.
When I try to create a Library in Xcode and then want to add an Objective-C
bridging header, that is denied. It claims that bridging is not supported for
Libraries.
When I create an Xcode project t
Good morning!
Tried to search the archives for this, but I might be using the wrong query.
With the command “swift test” (and I suppose “swift build”) is there a built-in
way to get a fixture, like a JSON file into the .xctest bundle?
Or is there any community convention or tools for this?
Tha