Hello World
June has started and hence has this blog! Have been thinking about it for a while, so here’s an introductory blog post using different languages, that I love and find interesting. This blog will be about technology, life, thoughts and anything fun.
In Rust I would say
1 2 3 4 5 | fn main() { println!("hello world!"); } |
In Scala I would say
1 2 3 4 5 6 7 | object HelloWorld { def main(args: Array[String]) { println("hello world!") } } |
In Erlang I would say
1 2 3 4 5 6 | -module(hello). -export([start/0]). start() -> io:fwrite("hello world!"). |
In Java I would say
1 2 3 4 5 6 7 | class HelloWorld { public static void main(String[] args) { System.out.println("hello world!"); } } |
In Go I would say
1 2 3 4 5 6 7 | package main import "fmt" func main() { fmt.Printf("hello world!") } |