Content deleted Content added
Dlrohrer2003 (talk | contribs) m Fixing a typo - You can help! |
No edit summary |
||
Line 1:
{{multiple issues|
{{Refimprove|date=September 2014}}
{{FNVGIUNRGHOUIFGNOFHBNFDOIPHBGH| logo = ▼
▲| logo =
| paradigm = [[Object-oriented programming|Object-oriented]]
| year =
Line 16 ⟶ 12:
| typing =
| implementations =
▲| website = {{URL|daimi.au.dk/~beta}}
}}
'''BETA''' is a pure [[object-oriented]] language originating within the "Scandinavian School" in object-orientation where the first object-
===Technical overview===
From a technical perspective, BETA provides several unique features. Classes and Procedures are unified to one concept, a [[BETA pattern|Pattern]]. Also, classes are defined as properties/attributes of objects. This means that a class cannot be instantiated without an explicit object context. A
===Patterns===
A major and peculiar feature of the language is the concept of patterns. In another programming language, such as [[C++]], one would have several classes and
</pre>
That is, a class called ''point'' will have two fields, ''x'' and ''y'', of type [[integer]]. The symbols ''(#'' and ''#)'' introduce patterns. The colon is used to declare patterns and variables. The ''@'' sign before the integer type in the field definitions specifies that these are integer fields, and not, by contrast, references, arrays or other patterns.
Line 63 ⟶ 38:
}
</source>
In BETA, such a function could be written
else
y -> z
Line 77 ⟶ 45:
#)
</pre>
The ''x'', ''y'' and ''z'' are local variables. The '''enter''' keyword FGHTProgramming Language, [http://daimi.au.dk/~beta/Books/index.html]
==References==
|