Timeline for What do you call parentheses operators?
Current License: CC BY-SA 3.0
8 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 13, 2021 at 22:36 | comment | added | Jens | The ISO C Standard most certainly calls () the "function-call operator". | |
| Jul 14, 2020 at 9:19 | comment | added | HCSF | for completeness, is there a name/term for the inner pair of parenthesis for decltype((x)) in C++? | |
| Aug 15, 2013 at 23:46 | vote | accept | Reactgular | ||
| Aug 15, 2013 at 17:19 | comment | added | Bart van Ingen Schenau | In C++, you can overload operator(), which is called the function call operator because it is invoked when you try to call an object as if it were a function. | |
| Aug 15, 2013 at 15:54 | comment | added | KeithS | In C# at least, the square brackets as a pair are referred to as the "indexing operator", because indexing, like many "operators", can be overridden to provide custom behavior, in this case using a variant of property definition syntax with the "this" keyword. | |
| Aug 15, 2013 at 12:38 | comment | added | KChaloux | @Jörg Hooray Scala? | |
| Aug 15, 2013 at 11:23 | comment | added | Jörg W Mittag | In some newer languages, parentheses are used as well. After all, an array is just a function from indices to values, a map is just a function from keys to values and a set is just a function from values to booleans, so why use a different syntax than a function call? | |
| Aug 15, 2013 at 11:20 | history | answered | Ross Patterson | CC BY-SA 3.0 |