---
title: "/* This bit of chicanery makes a unary function followed by a parenth… — Larry Wall Quote #264 | QuotesBy.net"
description: "/* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. */ — a quote by Larry Wall."
image: "https://quotesby.net/wp-content/themes/quotesby-editorial/assets/og-default.png"
---

> # /\* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. \*/

[Larry Wall](https://quotesby.net/Larry-Wall)\#264

[Programming](https://quotesby.net/Larry-Wall/programming/)[Perl](https://quotesby.net/Larry-Wall/perl/)[Syntax](https://quotesby.net/Larry-Wall/syntax/)[Parsing](https://quotesby.net/Larry-Wall/parsing/)

[WhatsApp (opens in a new tab)](https://wa.me/?text=%E2%80%9C%2F%2A%20This%20bit%20of%20chicanery%20makes%20a%20unary%20function%20followed%20by%20a%20parenthesis%20into%20a%20function%20with%20one%20argument%2C%20highest%20precedence.%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall%20https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F264%2F)[X (opens in a new tab)](https://twitter.com/intent/tweet?text=%E2%80%9C%2F%2A%20This%20bit%20of%20chicanery%20makes%20a%20unary%20function%20followed%20by%20a%20parenthesis%20into%20a%20function%20with%20one%20argument%2C%20highest%20precedence.%20%2A%2F%E2%80%9D%20%E2%80%94%20Larry%20Wall&url=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F264%2F)[Facebook (opens in a new tab)](https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fquotesby.net%2FLarry-Wall%2F264%2F)

## About this quote

What does it mean?The comment explains a trick that turns a unary function followed by parentheses into a function with one argument, giving it the highest precedence.In plain termsIt describes a syntax hack for argument handling.What can you take from it?Be aware of language quirks that affect how functions are parsed.

### Where it applies

- writing DSLs
- code readability issues

### Putting it to work

- use explicit parentheses
- document such tricks

### Questions to consider

- Is the benefit worth the potential confusion?
- How can you make this clearer to future readers?

### Another view

Such tricks can make code harder for others to understand.

## More from Larry Wall

1. > Be consistent.

[Permalink to quote \#265](https://quotesby.net/Larry-Wall/265/ "Permalink to quote 265")
2. > Does the same as the system call of that name. If you don't know what it does, don't worry about it.

[Permalink to quote \#266](https://quotesby.net/Larry-Wall/266/ "Permalink to quote 266")
3. > Even if you aren't in doubt, consider the mental welfare of the person who has to maintain the code after you, and who will probably put parens in the wrong pl…

[Permalink to quote \#267](https://quotesby.net/Larry-Wall/267/ "Permalink to quote 267")

## Related quotes

1. > And don't tell me there isn't one bit of difference between null and space, because that's exactly how much difference there is. :-)

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#2](https://quotesby.net/Larry-Wall/2/ "Permalink to quote 2")
2. > &gt; (It's sorta like sed, but not. It's sorta like awk, but not. etc.) Guilty as charged. Perl is happily ugly, and happily derivative.

[Larry Wall](https://quotesby.net/Larry-Wall)[Larry Wall quote \#51](https://quotesby.net/Larry-Wall/51/ "Permalink to quote 51")
3. > We toast the Lisp programmer who pens his thoughts within nests of parentheses.

[Alan Perlis](https://quotesby.net/Alan-Perlis)[Alan Perlis quote \#2](https://quotesby.net/Alan-Perlis/2/ "Permalink to quote 2")

```json
{
    "@context": "https://schema.org",
    "@type": "Quotation",
    "text": "/* This bit of chicanery makes a unary function followed by a parenthesis into a function with one argument, highest precedence. */",
    "url": "https://quotesby.net/Larry-Wall/264/",
    "spokenByCharacter": {
        "@type": "Person",
        "name": "Larry Wall"
    }
}
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "name": "Home",
            "item": "https://quotesby.net/"
        },
        {
            "@type": "ListItem",
            "position": 2,
            "name": "Authors",
            "item": "https://quotesby.net/authors/"
        },
        {
            "@type": "ListItem",
            "position": 3,
            "name": "Larry Wall",
            "item": "https://quotesby.net/Larry-Wall"
        },
        {
            "@type": "ListItem",
            "position": 4,
            "name": "Quote #264",
            "item": "https://quotesby.net/Larry-Wall/264/"
        }
    ]
}
```
