Gosu is a programming language for the Java Virtual Machine (JVM). Gosu
// Declare some data
var minLength = 4
var strings = { "yellow", "red", "blue" }// Slice and dice the data using blocks
print( strings.where( \ s -> s.length() >= minLength )
.sort()
.join( ", " ) )// Use standard java classes
var someFile = new java.io.File( "SomeFile.txt" )// But with shiny new methods
someFile.write( strings.join( "\n" ) )
Read more: Gosu
- is object oriented
- is statically typed
- is imperative
- is 100% compatible with Java
- features type inference
- supports closures
- provides simplified generics
- is being used in production by multi-billion dollar companies around the globe
- is provided via the Apache License v2.0
// Declare some data
var minLength = 4
var strings = { "yellow", "red", "blue" }// Slice and dice the data using blocks
print( strings.where( \ s -> s.length() >= minLength )
.sort()
.join( ", " ) )// Use standard java classes
var someFile = new java.io.File( "SomeFile.txt" )// But with shiny new methods
someFile.write( strings.join( "\n" ) )
Read more: Gosu
0 comments:
Post a Comment