Content deleted Content added
Removed usage references besides Guidewire products. One link was dead, the other leads to a dead project. There are no others, no one wants to use it if they can avoid it (I know because I have to use it). Tag: references removed |
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
||
Line 47:
In addition to standard class types Gosu supports enums, interfaces, structures, and annotations.
Program files facilitate Gosu as a scripting language. For example, Gosu's Hello, World! is a simple one-line program:<
print("Hello, World!")
</syntaxhighlight>
Gosu classes are also executable a la Java:<syntaxhighlight lang="gosu">
Line 70:
"Echo".print()
</syntaxhighlight>The combination of [[Closure (computer programming)|closures]] and enhancements provide a powerful way of coding with Collections. The overhead of Java streams is unnecessary with Gosu:
<
var list = {1, 2, 3}
var result = list.where(\ elem -> elem >= 2)
print(result)
</syntaxhighlight>
==Uses==
|