# Fields of an anonymous function?

**URL:** <https://discourse.julialang.org/t/fields-of-an-anonymous-function/44562>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 8, 2020, 11:22am UTC](https://discourse.julialang.org/t/fields-of-an-anonymous-function/44562 "2020-08-08T11:22:00Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![thofma](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thofma/32/1691_2.png) [@thofma](https://discourse.julialang.org/u/thofma)\
**Post date:** [August 8, 2020, 12:19pm UTC](https://discourse.julialang.org/t/fields-of-an-anonymous-function/44562/4 "2020-08-08T12:19:24Z")

</div>

I cannot comment on that, but here is some other reference:

> [@Closures as "classic object-oriented programming"](https://discourse.julialang.org/t/closures-as-classic-object-oriented-programming/33434/2):
>
> It uses an implementation detail about the representation of closures, namely [https://docs.julialang.org/en/v1.5-dev/devdocs/functions/#Closures-1](https://docs.julialang.org/en/v1.5-dev/devdocs/functions/#Closures-1) But I think this is an implementation detail, and not part of the official API, so I would not rely on this.

> [@Writing complex Flux Models](https://discourse.julialang.org/t/writing-complex-flux-models/40439/4):
>
> I think I’ve seen somewhere that closures being anonymous structs is an implementation detail which it is not recommended to depend on. Of course, if it is a single purpose project then by all means, just go ahead and implement that functor in there and use it while it works. # Too lazy to load Flux, I think something like this might work except closurefunctor shall be Flux.functor julia\> function test(a, b) return function(x) return a .+ b .\* x end end test (gene…

---

_[View the full topic](https://discourse.julialang.org/t/fields-of-an-anonymous-function/44562)._
