Go! (programming language): Difference between revisions

Content deleted Content added
Rescuing 1 sources and tagging 0 as dead. #IABot (v1.6beta)
Edjez (talk | contribs)
m renamed data type and data structure element from 'gender' to 'sex' to make it more appropriate.
Line 35:
<!-- Don't use <source> tag, because there is wikitext in the source code. -->
 
GenderSex [[#algebraic|'''::=''']] male | female.
person [[#interface|'''<~''']] {dayOfBirth:[] '''=>''' ''day''.
age:[] '''=>''' ''integer''.
gendersex:[] '''=>''' GenderSex.
name:[] '''=>''' ''string''.
home:[] '''=>''' ''string''.
lives:[''string'']{}}.
person:[''string'', ''day'', GenderSex, ''string''] [[#theory|'''$=''']] person.
person(Nm, Born, Sx, Hm)..{
dayOfBirth() '''=>''' Born.
age() '''=>''' yearsBetween(now(), Born).
gendersex() '''=>''' Sx.
name() '''=>''' Nm.
home() '''=>''' Hm.