-
Notifications
You must be signed in to change notification settings - Fork 42
Conversation
Thanks for the PR. Couple of questions/comments while I'm getting started with the code review:
|
|
I believe the only strict requirement is that In the examples that I could find over the internet for C# (and Java), people (or IntelliJ) always ignore the class of an object and just consume its fields one by one. (In C#, you have The proposed improvement to use
Sounds good to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the impressive work! I'll try to make another pass this week. Looking forward to releasing the C# support!
You're correct, should've validated my assumptions :)
That's a good reason to avoid rand here. I'll revert that change. We can revisit this if anyone ever needs it. |
There's currently one remaining test failure where the LCS deserializer doesn't fail at exactly the same container depth as the Rust version.
We switched to char when moving to .NET Standard 1.6
…ally equal objects of different types overwriting each other in Dictionaries, etc.
Rebased, added value-equality test, and added argument parsing for |
Did you meant the I'm going to land this PR now (EDIT: actually I have one last question for you) and give us a few days before releasing a crate. @mattico Thanks for the awesome contribution! |
Also it appears that the C# test runner stopped being able to discover the tests and it succeeds when there's no tests found :| |
@mattico Thanks the latest changes. I just merged the PR! |
Summary
A fairly straightforward port of the Java code to C#. Targets .NET Standard 1.6 for broad compatibility. Newer .NET versions do have some features that would be useful (
Rune
,record
,Range
), maybe we can switch in a few years.There are a few notable changes compared to the Java version:
Serde
. Runtimes are in subfolders (and sub-namespaces) of that.Fixes #68.
Test Plan
I ported the tests over from Java as well. Let's see if I got CI working on the first try.