# Problem with parentheses around quoted expression in generated function

**URL:** https://discourse.julialang.org/t/problem-with-parentheses-around-quoted-expression-in-generated-function/73347
**Category:** General Usage
**Tags:** question, metaprogramming
**Created:** [December 19, 2021, 8:47pm UTC](https://discourse.julialang.org/t/problem-with-parentheses-around-quoted-expression-in-generated-function/73347 "2021-12-19T20:47:59Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [December 19, 2021, 9:36pm UTC](https://discourse.julialang.org/t/problem-with-parentheses-around-quoted-expression-in-generated-function/73347/3 "2021-12-19T21:36:43Z")

</div>

> [@evf](#):
>
> I’m trying to use generated functions to write functions that would return the sum of the values of the nearest neighbors of given site in a multidimensional integer periodic lattice.

You don’t need a generated function for this. See: [Seemingly unnecessary allocation within for loop - #8 by stevengj](https://discourse.julialang.org/t/seemingly-unnecessary-allocation-within-for-loop/72556/8)

---

_[View the full topic](https://discourse.julialang.org/t/problem-with-parentheses-around-quoted-expression-in-generated-function/73347)._
