Hello world
A Sidef script can be written in any text editor and, by convention, it has the .sf extension.
The content of a simple Hello World program looks like this:
1
#!/usr/bin/sidef
2
3
say "Hello, 世界";
Copied!
If we save the content in a new file called hello.sf, we can execute the code by running:
1
$ sidef hello.sf
Copied!
Last modified 1yr ago
Copy link