Skip to content

Allow function type for attributes

Marmaduke Woodman requested to merge github/fork/neich/allow_function_attr into master

Created by: neich

Hi,

This is a proposal to allow functions as values for attributes. Right now, if the value is a function it gets evaluated and the result is assigned to the attribute, thus preventing the use of functions as values. This is a very small change that allows to use function types without breaking the previous behavior.

Right now I'm using this type of value as factories

Merge request reports