# \[Accepted with Modification\] SE-0253 - Callable values of user-defined nominal types

**URL:** <https://forums.swift.org/t/accepted-with-modification-se-0253-callable-values-of-user-defined-nominal-types/24605>\
**Category:** Announcements\
**Created:** [May 16, 2019, 11:09pm UTC](https://forums.swift.org/t/accepted-with-modification-se-0253-callable-values-of-user-defined-nominal-types/24605 "2019-05-16T23:09:07Z")\
**Posts on this page:** 1\
**Showing post:** 65

<div class="post-metadata">

**Author:** ![davedelong](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/davedelong/32/38708_2.png) [@davedelong](https://forums.swift.org/u/davedelong)\
**Post date:** [May 18, 2019, 4:31pm UTC](https://forums.swift.org/t/accepted-with-modification-se-0253-callable-values-of-user-defined-nominal-types/24605/65 "2019-05-18T16:31:07Z")

</div>

If this is really going to be a function (which [I very much disagree should happen](https://forums.swift.org/t/se-0253-callable-values-of-user-defined-nominal-types/24177/19), but oh well), then IMO there's really only a single of logical name for what it should be:

```swift
func _ (arg1: Type1)

```

This is not a feature like `subscript`, because we've decided we're still going to have `func` as part of the signature, which is not the case when declaring a `subscript`-able type. Therefore, I don't think we need an additional special keyword-name.

What we're technically describing here is the ability to call a function on a type, but where that function _does not have a name_. In Swift, the syntax for "this is unnamed" is to use `_`. So having the callable function be `func _ (...)` is consistent with existing syntax, because it means "This is a function, but it has no name", which implies you'd call it by omitting the name, which means it is the "callable" function:

```swift
struct Adder {
    let base: Int
    func _ (adding value: Int) -> Int { return base + value }
}

let a = Adder(base: 40)
let answer = a(adding: 2) // calling a function with an omitted name

```

---

_[View the full topic](https://forums.swift.org/t/accepted-with-modification-se-0253-callable-values-of-user-defined-nominal-types/24605)._
