# \`if let\` shorthand

**URL:** <https://forums.swift.org/t/if-let-shorthand/54230>\
**Category:** Pitches\
**Created:** [December 22, 2021, 10:23pm UTC](https://forums.swift.org/t/if-let-shorthand/54230 "2021-12-22T22:23:36Z")\
**Posts on this page:** 1\
**Showing post:** 39

<div class="post-metadata">

**Author:** ![aerobounce](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/aerobounce/32/14175_2.png) [@aerobounce](https://forums.swift.org/u/aerobounce)\
**Post date:** [December 23, 2021, 7:57pm UTC](https://forums.swift.org/t/if-let-shorthand/54230/39 "2021-12-23T19:57:16Z")

</div>

@cal

Happy to see this going forward.  
Because I never omit type declaration, may I ask if this expression allowed with current implementation?

```swift
var someLengthyVariableName: SomeLengthyTypeName?

if let someLengthyVariableName: SomeLengthyTypeName {
    ...
}

```

---

_[View the full topic](https://forums.swift.org/t/if-let-shorthand/54230)._
