Introduction:
Crystal is a programming language that resembles Ruby but compiles to native code and tries to be much more efficient, at the cost of disallowing certain dynamic aspects of Ruby.
Installation
1. On Debian and Ubuntu
1 2 3 4 |
|
2. On Mac OSX using Homebrew
1 2 |
|
Hello World
This is the simplest way to write the Hello World program in Crystal:
1
|
|
First create a file hello.cr containing your code. Then type in the console:
1 2 |
|
That’s all! Hope you guys love it :D I will have another post about syntax and semantics :) Thanks