robertluo / fun-map

a map blurs the line between identity, state and function

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flexible FunctionWrapper selector syntax

robertluo opened this issue · comments

The default FunctionWrapper has cached, focus features, but someone may want a simpler one, maybe even a customized one.

Although it is possible that user create their own function/macro to do so, if fw and fnk macro can allow it it is more convenient.

For example, fw macro can have a :impl optional key, specify a function in place of impl/->FunctionWrapper it then pass the options (like focus, trace) to it.