Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Wording of Slice1 Custom Type Encoding #417

Conversation

InsertCreativityHere
Copy link
Member

This is a companion PR to icerpc/icerpc-csharp#3929 and adjusts the docs accordingly.

@@ -54,8 +54,8 @@ public static class BigIntSliceEncoderExtensions
```

{% slice1 %}
If you use this custom type as an optional (with a `?` suffix) outside of a tag context, you also need to supply methods
to encode/decode a nullable value of this type. With our example:
If this custom type is ever tagged or used as an optional type (with a `?` suffix), you also need to supply methods to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this clarification confusing. tagged implies optional. Why not a simpler:

if this customer type is even used as an optional (with a ? suffix), you also need to supply methods...

i.e. just remove the "outside of a tag context".

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove it.
I kept the distinction to be on the safe side. Yes, they both use the optional syntax, but in some places we make a distinction between optional (but not tagged) and 'pure' optional types.
But I've no problem with your suggestion.

@InsertCreativityHere InsertCreativityHere merged commit b4b636e into icerpc:main Feb 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants