--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
Just pointer fields. Data section fields are always "non-optional".
Does this mean that every field (including lists) is nullable? That's quite a shame. Looks like all my generated fields are going to be implicitly-unwrapped-optional, then (reminds me of objective-c translated into swift).
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+...@googlegroups.com.
Visit this group at https://groups.google.com/group/capnproto.
>All pointer fields can be null. Because all types in Cap'n Proto have a default value, you don't need to return optionals; you can return the default value when a `getFoo()` accessor reads a null. You should additionally provide `hasFoo()` accessors for when the user actually wants to distinguish the null case.I'm a little confused by the documentation on this one. What is the default value of a struct?
This section seems to only be about structs inside lists, but even so I'm struggling to understand where I should be looking. If I have an all-zero pointer, where is the default value stored?
Where would I store the value a user sets?
--
You received this message because you are subscribed to the Google Groups "Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscribe@googlegroups.com.
I'm considering using Cap'n Proto for a Swift project. I wouldn't mind picking up a partial implementation and completing it. Dan, or anyone, did you end up committing anything?
Dean
Did this code ever go anywhere, or should I consider it dead for Swift?I have a mixed product in Swift and C++ so am looking at mutually-compatible exchange options.
--