Page MenuHomePhabricator

Allow for composition to be expressed in the front-end
Closed, ResolvedPublic

Description

A Z14/Implementation can have a Z14K2/composition value, which is either a literal, a Z7/Function call, a Z9/Reference, or a Z18/Argument reference. It can be a literal of any type where the key values in turn might be another such literal.

This is very similar to a normal literal, but in additions it allows for Z18/Argument references. A Z18/Argument reference is a reference to one of the Z17/Argument declarations on the Z8K1/Argument list of the Z8/Function this Z14/Implementation implements.

Examples of resulting function compositions for implementations are given here: https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Examples/Function_composition

In this task, we allow for compositions to be expressed, i.e. for the use of Argument references within a function composition.

Event Timeline

Change 699777 had a related patch set uploaded (by Jforrester; author: Lindsay Wardell):

[mediawiki/extensions/WikiLambda@master] Vue: Update function calling code to handle composition

https://gerrit.wikimedia.org/r/699777

Change 699777 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Vue: Update function calling code to handle composition

https://gerrit.wikimedia.org/r/699777

Change 699803 had a related patch set uploaded (by Lindsay Wardell; author: Lindsay Wardell):

[mediawiki/extensions/WikiLambda@master] Allow composition to be created.

https://gerrit.wikimedia.org/r/699803

Change 699803 merged by jenkins-bot:

[mediawiki/extensions/WikiLambda@master] Allow composition to be created.

https://gerrit.wikimedia.org/r/699803