One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool just to write up a quick equivalent to C#'s Nullable or Rust's Option.
I could super easily add this myself. I personally like C#'s interface more, but I think it should be named Optional. That way, it doesn't conflict with our already exisiting idea of nullability in the docs.
What do y'all think @dcodeIO @MaxGraey @jtenner @sirwillem ? 😄
One thing about AS is that basic types cannot be nullable. However, I've been designing some APIs that need some nullable Basic types, and I've been working around them. But I think it'd be cool just to write up a quick equivalent to C#'s Nullable or Rust's Option.
I could super easily add this myself. I personally like C#'s interface more, but I think it should be named
Optional. That way, it doesn't conflict with our already exisiting idea of nullability in the docs.What do y'all think @dcodeIO @MaxGraey @jtenner @sirwillem ? 😄