Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

Empty Constructors

In Fuzion, it is fairly common to declare constructor fields that do not contain any code or inner declarations, such as the feature person in this example:

An empty constructor in Fuzion can be written using a full stop . instead of is:

The full stop . must follow immediately after the feature's signature. No white space or new line is permitted here.

If a constructor feature contains inner declarations is is required:

Using a full stop followed by inner declaration results in syntax errors: