Swift Hello, world!

Hello, world! is often the first program that we write in a new programming language. It helps us to understand the most basic application syntax and is a good way to test our tool chain to make sure that we can compile and/or run a program.

HelloWorld.swift
#!/usr/bin/env swift;
/******************************************************************************
 * Simple first program.
 * 
 * Copyright © 2020 Richard Lesh.  All rights reserved.
 *****************************************************************************/

import Foundation

// Begin Main
print("Hello, world!")

exit(EXIT_SUCCESS)

About the Author

Richard Lesh is a software engineer and computer-science educator specializing in high-performance computing (HPC), numerical algorithms, systems-level software development and artificial intelligence.

@ Richard Lesh. All rights reserved.