You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.
![swiftc-wasm-status.md](https://cdn-ak-scissors.b.st-hatena.com/image/square/3bee82c7f10f49ac6c52299be9b4859b1ed55b29/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fimages%2Fmodules%2Fgists%2Fgist-og-image.png)
SwiftLint 0.22で追加された multiple_closures_with_trailing_closure というルールをご存知でしょうか。これは次のような複数のクロージャを引数に取るAPIを使用する時に、最後の引数のクロージャをTrailing Closureとして渡すことを警告するというルールです。 func fetch(id: Int, success: () -> Void, failure: (Error) -> Void) { ... } // NG fetch( id: 12345, success: { print("success") } ) { error in print("error: \(error)" } // OK fetch( id: 12345, success: { print("success") }, failure: { error
Graydon has been on Swift for a while, and there are a few other prominent Rust contributors there as well. I hope they are enjoying themselves and make good things. Indeed, Huon Wilson and Alexis Beingessner are both at Apple now, and happily they remain active in the Rust community as well (though under no uncertain circumstances are they allowed to submit code).I can understand why this is on H
1. The document discusses Swift Package Manager (SwiftPM), a new package manager for Swift packages and modules introduced in Xcode 8 and Swift 3. 2. SwiftPM allows defining packages and dependencies through a Package.swift file and building and linking packages through the swift build and swift run commands. 3. The author provides an example of initializing a package with SwiftPM, adding a depend
Apple’s Swift Team is happy to announce that Swift’s benchmark suite is now open source. The suite contains source code for benchmarks, libraries, and utilities designed to help track Swift performance and catch performance regressions before they are committed, including: 75 benchmarks covering a number of important Swift workloads Libraries providing commonly needed benchmarking functions A driv
In a talk last week at Swift Summit, I spoke a bit about Swift and performance, and about how structs and generic functions in Swift allow you to write high-level code without paying a significant performance penalty. This built on the example I posted a couple of weeks back about sorting nibbles in Swift. Towards the end, I gave a couple of lines of code that seemingly behave the same, but are ac
I’ve become a fan of creating one’s own test doubles (aka mock objects) instead of using a mock framework like OCMock or OCMockito. Uncle Bob describes this process in one of his Clean Code videos, and it seems to work very well in Swift. Why create your own mock objects? There are a couple reasons for doing this. Tests can be more readable. I say “can” because its really up to you to create reada
Mar 20, 2015 Objective-Cではテストケース毎にオブジェクトの一部だけ挙動を変えたい場合に、OCMockなどのライブラリを使うのが普通でした。 それらのライブラリはNSInvocationやMethod Swizzlingなどを使ったいわゆる魔術的なコードで実現されていることが多く、 “テストコードを書いているのによくわからんコードが動いてる!”ってなってモヤモヤしたりします。 一方、Swiftではmanual mockingという手法が取られたりするみたいです。 例えば、 class Object { var foo: String { return "foo" } var bar: String { return "bar" } } class ObjectTests: XCTestCase { func testFoo() { class ObjectMock:
Swift is now open source. For the latest news, visit the Swift open source blog Today Swift 1.2 was released as part of Xcode 6.3 beta. This beta release includes a significantly enhanced Swift compiler, as well as new features in the Swift language itself. For the complete list of changes, read the release notes. This blog post will focus on the highlights. Compiler improvementsThe Swift 1.2 comp
TL;DR: CocoaPods 0.36 will bring the long-awaited support for Frameworks and Swift. It isn't released and considered stable yet, but a beta is now available for everyone via [sudo] gem install cocoapods --pre. Pod authors will especially want to try this version to make sure their pods will work with the upcoming release. This is because if a single dependency in a user's project requires being a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く