Hello World Program in Crystal
puts "Hello World!"
Crystal is based on the Ruby syntax,
and there are a lot of similarities.
puts
, for example, is a function that outputs the string argument to the stdout.
Crystal is, however, a statically typed programming language unlike Ruby.
If you run this script, you will get the following output:
Hello World!
What's Next
If you are interested in learning Crystal programming, then go ahead and set up a development environment.
- Next Step: Crystal development environment setup
C C++ C# Clojure D Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift Typescript