This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ( java.util.Scanner ) | |
main.App { | |
main() { | |
out.print("Como te llamas? ") | |
a : String = Scanner( System.in ).nextLine() | |
out.printf("Hola %s %n ", a ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
blocks.IfTrueInline { | |
main() { | |
value = true | |
value.ifTrue((){ | |
out.println("Yeap!, still true") | |
}) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Estoy por convertir | |
1 .+( 1 ) | |
// En | |
+(1,1) | |
//Como aparece en: http://goo.gl/MZU5e | |
//O más bien dicho |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testNull() { | |
a = null | |
a . isNull? ( { | |
out.println("a is null") | |
}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
list.each( ( name : String ) { | |
out.println( name ) | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class _<__> { | |
public __ _; | |
public _(__ __) { | |
_ = __; | |
} | |
public static void main( String ... args ) { | |
_<String> s = new _<String>("Hola"); | |
s._ = "Adios"; | |
System.out.println( s._ ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find test-samples/ -name "*.ryz" -exec echo \{\} \; -exec cat \{\} \; > s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//;# http://java.sun.com/developer/technicalArticles/GUI/translucent_shaped_windows/ | |
recortes { | |
AWTUtilitiesWrapper { | |
import( java.awt.GraphicsConfiguration ) | |
import( java.awt.Shape ) | |
import( java.awt.Window ) | |
import( java.lang.reflect.InvocationTargetException ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//;http://fxexperience.com/2011/05/maps-in-javafx-2-0/ | |
import ( javafx.application.Application ) | |
import ( javafx.scene.Scene ) | |
import ( javafx.scene.paint.Color ) | |
import ( javafx.scene.web.WebEngine ) | |
import ( javafx.scene.web.WebView ) | |
import ( javafx.stage.Stage ) | |
fxdemo.WebMap : Application { | |
start( stage: Stage ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compare: | |
"This is the %d time we talk about %s ".%( 2, "dinner" ) | |
To: | |
String.format("This is the %d time we talk about %s ", 2, "dinner"); | |
The former is more OO ( imho of course ) |
OlderNewer