# Syntax Surprises

**URL:** <https://discourse.julialang.org/t/syntax-surprises/92369>\
**Category:** General Usage\
**Tags:** syntax, discussion, fun, gotchas\
**Created:** [December 31, 2022, 8:00pm UTC](https://discourse.julialang.org/t/syntax-surprises/92369 "2022-12-31T20:00:02Z")\
**Posts on this page:** 1\
**Showing post:** 35

<div class="post-metadata">

**Author:** ![c42f](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/c42f/32/52842_2.png) [@c42f](https://discourse.julialang.org/u/c42f)\
**Post date:** [January 4, 2023, 6:48am UTC](https://discourse.julialang.org/t/syntax-surprises/92369/35 "2023-01-04T06:48:17Z")

</div>

Speaking of excess parentheses, there’s various places these are allowed and I have very mixed feelings about. An extreme example with juxtaposition

```julia
julia> (((((((6)))))))(((((((7)))))))
42

```

And a fun one with keyword argument syntax

```julia
julia> f(;kws...) = kws
f (generic function with 1 method)

julia> f(a=1) # ok sure
pairs(::NamedTuple) with 1 entry:
  :a => 1

julia> f(((((((((a=1))))))))) # now what?
pairs(::NamedTuple) with 1 entry:
  :a => 1

```

---

_[View the full topic](https://discourse.julialang.org/t/syntax-surprises/92369)._
