# Writing a static function

**URL:** https://discourse.julialang.org/t/writing-a-static-function/92882
**Category:** General Usage
**Created:** [January 12, 2023, 3:58pm UTC](https://discourse.julialang.org/t/writing-a-static-function/92882 "2023-01-12T15:58:35Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [January 14, 2023, 1:27pm UTC](https://discourse.julialang.org/t/writing-a-static-function/92882/21 "2023-01-14T13:27:48Z")

</div>

> [@uniment](#):
>
> ` @btime $a(); @btime $b(); @btime $c();`

I do not understand the dollar sign notation. When I try to execute `$a()`, I get the error:

```julia
ERROR: syntax: "$" expression outside quote around /Users/erlebach/src/2022/rude/giesekus/functor_tst.jl:118
Stacktrace:
 [1] top-level scope
   @ ~/src/2022/rude/giesekus/functor_tst.jl:118

```

Thanks.

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [January 14, 2023, 2:22pm UTC](https://discourse.julialang.org/t/writing-a-static-function/92882/22 "2023-01-14T14:22:07Z")

</div>

The dollar signs are part of the usage of the `@btime` macro, see [Manual · BenchmarkTools.jl](https://juliaci.github.io/BenchmarkTools.jl/dev/manual/#Interpolating-values-into-benchmark-expressions).

To run the same thing outside of the macro, just remove the dollar signs.

---

<div class="post-metadata">

### Author: ![erlebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/erlebach/32/12973_2.png) [@erlebach](https://discourse.julialang.org/u/erlebach)
#### Post date: [January 14, 2023, 2:28pm UTC](https://discourse.julialang.org/t/writing-a-static-function/92882/23 "2023-01-14T14:28:21Z")

</div>

Thanks. I remember now. The last time I used this feature was 3 years ago!

[Previous page](https://discourse.julialang.org/t/writing-a-static-function/92882.md?page=1)
