Content deleted Content added
Magioladitis (talk | contribs) →Example: mark source area |
|||
Line 35:
The following example illustrates the "ontology-oriented" type and declarations style of Go!:<ref name=applied />
<source>
Gender [[#algebraic|'''::=''']] male | female.
Line 60 ⟶ 61:
newPerson(Nm, Born, Sx, Hm) '''=>''' $person(Nm, Born, Sx, Hm).
</source>
{{anchor|algebraic}}The <code>::=</code> rule defines a new [[algebraic data type]], a [[data type]] with only data constructors.
|