ゆるかわの日記

暮らしに役立つかもしれないことを書きます

Welcome to Swiftを意訳してみる

昨晩、swiftをアップルが発表したので簡単な資料を機械翻訳と下手な英語で意訳します。(しかも途中。。)


Welcome to Swift

Swift(スウィフト)にようこそ

Swift is a new object-oriented programming language for iOS and OS X development. Swift is modern, powerful, and easy to use.

Swiftは、iOSOS X開発用の新しいオブジェクト指向プログラミング言語です。Swiftは現代的で、強力で、使いやすいです。

Safe 安全です


Swift pairs increased type safety with type inference, restricts direct access to pointers, and automatically manages memory—making it easy to create secure, stable software.

Swiftは型推論で増加する型の安全性やポインターへの直アクセスの制限、自動のメモリ管理がセットになって、安全で安定したソフトウエアを簡単に作れます。

modern モダンです


Swift includes optionals, generics, tuples, and other modern language features. Inspired by and improving upon Objective-C, Swift code feels natural to read and write.

Swiftでは、optionals、generics、tuplesやその他のモダンな言語の機能が含まれています。
Objective-Cに影響を受け、さらに改良されたことで、(Objective-Cを書いていた人には)Swiftのコードは自然に読んだり、書いたり出来ます。


Powerful 強力です


Take advantage of powerful pattern matching in Swift to write simple, expressive code. Format strings naturally with string interpolation. Use frameworks like Foundation and UIKit directly from Swift.

単純な、表現力豊かなコードを書くために、Swiftで強力なパターンマッチを利用してください。ストリング展開で自然にストリングの書式を設定してください。使用フレームワークは、Swiftから直接根拠とUIKitに合います。

Interactive 対話的


Use playgrounds to experiment with new technologies, analyze problems, and prototype user interfaces.

新技術の実験に遊び場を使って、問題を分析して、ユーザ・インタフェースの原型を作ってください。


Fast 速い


The Swift compiler applies advanced code analysis to tune your code for performance, letting you focus on writing great apps instead of on implementing complex optimizations.

Swift・コンパイラはパフォーマンスのためにあなたのコードを調整するために先進のコード分析を適用します。そして、あなたに複雑なoptimizationsを実行することにの代わりにすばらしいアプリを書くことに集中させます。