Skip to content
skotch
...

Standard Library

Prints a value followed by a newline.

println("hello") // prints a string
println(42) // prints an integer
println(true) // prints a boolean
println() // prints a blank line
TargetStringIntBoolean
JVMSystem.out.println(String)System.out.println(int)System.out.println(boolean)
DEXLjava/io/PrintStream;->println(Ljava/lang/String;)Vvia toString + printlnvia toString + println
LLVM IRputs(str)printf("%d\n", val)conditional puts("true")/puts("false")

The following standard library features are not yet implemented:

FeatureBlocked on
print() (no newline)Straightforward to add
readLine()I/O beyond println
listOf, mutableListOfGenerics, classes
map, filter, foldLambdas, generics
to (Pair creation)Classes
require, checkException handling
String.length, .substring()Method calls on classes
Int.toString()Method calls on primitives
Math functions (abs, max, min)Standard library binding