1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 18:18:51 +03:00
mal/swift/main.swift
2015-03-23 01:23:27 -07:00

19 lines
1.0 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//******************************************************************************
// MAL - main
//******************************************************************************
// Swift requires that main() be invoked from a file named "main.swift". See the
// paragraph "Application Entry Points and main.swift on
// https://developer.apple.com/swift/blog/?id=7:
//
// Youll notice that earlier we said top-level code isnt allowed in most
// of your apps source files. The exception is a special file named
// main.swift, which behaves much like a playground file, but is built
// with your apps source code. The main.swift file can contain top-level
// code, and the order-dependent rules apply as well. In effect, the first
// line of code to run in main.swift is implicitly defined as the main
// entrypoint for the program. This allows the minimal Swift program to be
// a single line as long as that line is in main.swift.
main()