• Kenton Varda's avatar
    Disallow initializing `Maybe<T>` from `T*`. · cded1f89
    Kenton Varda authored
    I think I imagined once upon a time that this would be a convenient way to deal with external interfaces that like to return nullable pointers. However, in practice it is used nowhere in KJ or Cap'n Proto, and it recently hid a bug in my code where I had assigned a `Maybe<T>` from an `Own<T>`. We can introduce a `fromNullablePointer()` helper or something if that turns out to be useful.
    cded1f89
Name
Last commit
Last update
..
benchmark Loading commit data...
capnp Loading commit data...
kj Loading commit data...
CMakeLists.txt Loading commit data...