types.jl 264 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

"""
    Maybe{X}

Type shortcut for "`X` or nothing" or "nullable `X`" in javaspeak. Name
got inspired by our functional friends.
"""
const Maybe{X} = Union{Nothing,X}

"""
    VPtr

A convenience wrapper for "any" (C `void`) pointer.
"""
const VPtr = Ptr{Cvoid}