I have read the article already. But i dont fully understand how it applies to my question
This is because anonymous functions are closures, which is to say that they capture the environment in which they’re created. In the case of module attributes, this is the compile time environment that is not available at runtime.
Long story short, when validating structs you have to use named remote functions IE
&OtherModule.function/1
As you have quoted this article again despite me saying I have read it, maybe you can explain to me how this case applies here.
Do note, you have successfully created an anonymous function in the validator contrary to what the article says and furthermore, this article does not comment on my question - nesting a named function within an anonymous function.
Thanks kartheek.






















