Content deleted Content added
Link to specific version Tags: Mobile edit Mobile web edit |
m General fixes via AutoWikiBrowser |
||
(32 intermediate revisions by 24 users not shown) | |||
Line 1:
{{Short description|Programming language}}
{{Refimprove|date=February 2015}}▼
{{Multiple issues|
{{Cleanup bare URLs|date=September 2022}}
}}
{{Infobox programming language
| name = Gosu
Line 8 ⟶ 12:
| released = <!-- {{11 Nov|2010}} -->
| developer = Guidewire and open source contributors
| latest release version =
| latest release date = {{
| latest preview version =
| latest preview date = <!-- {{start date and age|YYYY|MM|DD}} -->
Line 20 ⟶ 24:
| operating system = any supporting JVM
| license = [[Apache License 2.0]]
| website = {{URL|
| wikibooks =
}}
'''Gosu''' is a [[Type system#Static type-checking|statically
Gosu can serve as a scripting language, having free-form Program types (.gsp files) for scripting as well as statically verified Template files (.gst files). Gosu can optionally execute these and all other types directly from source without precompilation, which also distinguishes it from other static languages.
==History==
Gosu began in 2002 as a scripting language called
Guidewire continues to support and use Gosu extensively within InsuranceSuite applications. Guidewire has decided to freeze the development of new Gosu programming language constructs at this time. Guidewire continues to evolve InsuranceSuite through RESTful APIs and Integration Frameworks that can be accessed using Java.
==Philosophy==
Gosu language creator and development lead, Scott McKinney, emphasizes pragmatism, found in readability and [[discoverability]], as the overriding principle
▲Gosu language creator and development lead, Scott McKinney, emphasizes pragmatism as the overriding principle in Gosu's design.<ref name=drdobbs>{{cite web|url=http://www.drdobbs.com/open-source/language-of-the-month-gosu/231001429#|title=Language of the Month: Gosu|date=2012-12-07|publisher=[[Dr. Dobb's Journal]]}}</ref> For instance, [[code readability]] won out in design contests between readability and [[concision]].<ref>{{cite web|url=https://sdtimes.com/couchdb/the-five-next-big-things-in-open-source/2/|title=
==Syntax and semantics==
Gosu follows a syntax resembling a combination of other languages. For instance, declarations follow more along the lines of [[Pascal (programming language)|Pascal]] with name-first grammar. Gosu classes can have functions, fields, properties, and inner classes as members. Nominal inheritance and composition via [[delegation (object-oriented programming)|delegation]] are built into the type system as well as [[structural typing]] similar to the [[Go (programming language)|Go]] programming language.
Gosu supports several file types:
Line 47 ⟶ 50:
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 69 ⟶ 72:
</syntaxhighlight>Now you can tell a String to print itself:<syntaxhighlight lang="gosu">
"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==
This general-purpose programming language is used primarily in [[Guidewire Software]]'s commercial products.
==References==
{{Portal|Free and open-source software}}▼
{{Reflist}}
Line 87 ⟶ 89:
==External links==
*[
*[https://github.com/gosu-lang/gosu-lang Source code repository]
▲{{Portal bar|Free and open-source software}}
{{DEFAULTSORT:Gosu (Programming Language)}}
Line 96 ⟶ 101:
[[Category:Software using the Apache license]]
[[Category:Programming languages created in 2002]]
[[Category:High-level programming languages]]
[[Category:Cross-platform free software]]
[[Category:Free
[[Category:Statically typed programming languages]]
|