This is a mirror of official site: http://jasper-net.blogspot.com/

Gosu

| Monday, November 15, 2010
Gosu is a programming language for the Java Virtual Machine (JVM).

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

Posted via email from .NET Info

0 comments: