LoginSignup
2
0

More than 5 years have passed since last update.

rustとscalaとkotilnの勉強 とりあえずhello world

Posted at

Dockerができたのでやっていく。
当面はThe Rust Programming Language 日本語訳を頭からやりつつ、scals、kotilnで同じことをやってみる方針。

まずは3章、事始め
Hello worldから

Rust

fn main(){
    println!("こんにちは世界");
}

Build

rustc hello.rs

実行

./hello

Scala

object Hello{                                                                                                                 
  def main(args:Array[String]){                                                                                             
    println("こんにちは世界")                                                                                             
  }                                                                                                                         
}                                                                                                                             

Build

scalac Hello.scala

実行

scala Hello

Kotlin

fun main(args:Array<String>){
    println("こんにちは世界")
}

Build

kotlinc Hello.kt -include-runtime -d hello.jar

実行

kotlin hello.jar
2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0