Overview: Hello World!

Hello World!

The classic "hello world" program looks like this in Crystal:

puts "Hello world!"

From this you can see that the main routine is simply the program itself: there's no need to define a "main" function or something similar.

To the extent possible under law, the persons who contributed to this workhave waived
all copyright and related or neighboring rights to this workby associating CC0 with it.
https://crystal-lang.org/docs/overview/hello_world.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部