Skip to content

Expression Bodies

General Information

Mantis ID/URL: http://oldforge.etsi.org/mantis/view.php?id=8190

Clauses: new proposal

Affiliation: Nokia - Matthias Simon

Description

Expression bodies are a shorthand for function literals. Example:

    var even := (integer x) => x mod 2 == 0;

is a shorthand for:

   var even := function (integer x) return boolen { return x mod 2 == 0 }

Edited by Jens Grabowski