Skip to content

Conversation

@EdwarDDay
Copy link
Contributor

Currently, it's not possible to override the not null mark behavior of the tagged encoder. I would like to override it and add an additional parameter $isNull with my custom format. This way I can better support nullability.

@EdwarDDay EdwarDDay force-pushed the tagged_not_null_mark branch from 6fd6cc9 to 8fb5ea4 Compare May 29, 2022 16:16
@sandwwraith
Copy link
Member

These classes do not have any documentation and are meant for internal use, not for public API. Are you sure that they fit your needs?

@EdwarDDay
Copy link
Contributor Author

It's working quite good and I had no problems so far. It's a key-value-store in the background, so I oriented on the properties format. Else it would be more or less just copying the code from Tagged and NameValueEncoder and this looks redundant to me.

@sandwwraith
Copy link
Member

Ok then. But remember that this class is subject to change without further notice and one day you may need to copy it anyway

@EdwarDDay EdwarDDay force-pushed the tagged_not_null_mark branch from 8fb5ea4 to cdd391f Compare June 3, 2022 10:00
@EdwarDDay EdwarDDay force-pushed the tagged_not_null_mark branch from cdd391f to 2f6a276 Compare June 3, 2022 14:59
@sandwwraith sandwwraith merged commit 1cff25e into Kotlin:dev Jun 7, 2022
@EdwarDDay EdwarDDay deleted the tagged_not_null_mark branch June 7, 2022 15:25
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