# Aliases for Union{T, Nothing} and Union{T, Missing}?

**URL:** https://discourse.julialang.org/t/aliases-for-union-t-nothing-and-union-t-missing/15402
**Category:** New to Julia
**Created:** [September 24, 2018, 12:03am UTC](https://discourse.julialang.org/t/aliases-for-union-t-nothing-and-union-t-missing/15402 "2018-09-24T00:03:13Z")
**Posts on this page:** 1
**Showing post:** 26

<div class="post-metadata">

### Author: ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)
#### Post date: [May 8, 2019, 2:35pm UTC](https://discourse.julialang.org/t/aliases-for-union-t-nothing-and-union-t-missing/15402/26 "2019-05-08T14:35:37Z")

</div>

Given that the API of some functions in Julia now gives `nothing` if no sensible output exist, i.e.

```julia
julia> tryparse(Float64, "a")

julia> findfirst(==(3), [1, 2])

```

there was a proposal to create a few `?` based syntactic sugar to work with `nothing` [https://github.com/JuliaLang/julia/issues/26303](https://github.com/JuliaLang/julia/issues/26303).

If that happens, then the `T?` notation would be more consistent for `nothing` than `missing`.

---

_[View the full topic](https://discourse.julialang.org/t/aliases-for-union-t-nothing-and-union-t-missing/15402)._
