[ 
https://issues.apache.org/jira/browse/TINKERPOP-2348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347428#comment-17347428
 ] 

Florian Hockmann commented on TINKERPOP-2348:
---------------------------------------------

I have a branch ready that implements nullable checks for Gremlin.Net: 
[https://github.com/apache/tinkerpop/tree/TINKERPOP-2348]

Introducing the nullable checks however comes with some small breaking changes. 
I expect that these breaking changes should not affect 99% of the users but 
they are still breaking changes.

On top of that, the change requires to additionally target .NET 5 to be able to 
use nullable annotations for generics which we use a lot. This requires 
contributors to also install .NET 5 on their machines. We currently try to 
require the same .NET SDK across all branches so we would have to update all 
branches to .NET 5 first. I'm not sure if that makes sense right now as .NET 5 
is not a LTS release so we probably want to wait for the release of the next 
LTS release, .NET 6, which is expected for November 2021.

So, it seems like the best option to me right now that we wait for .NET 6 here 
and then let this contribution land on master so it can be released in 
TinkerPop 3.6.0.

> Enable nullable checks
> ----------------------
>
>                 Key: TINKERPOP-2348
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP-2348
>             Project: TinkerPop
>          Issue Type: Improvement
>          Components: dotnet
>            Reporter: Florian Hockmann
>            Assignee: Florian Hockmann
>            Priority: Minor
>
> Gremlin.NET should enable [nullable 
> checks|https://devblogs.microsoft.com/dotnet/embracing-nullable-reference-types/]
>  to clearly communicate to users what can be {{null}} in Gremlin.NET and also 
> to possibly find possible {{NullReferenceExceptions}} easier in our own code.
> The recommendation from Microsoft is to update libraries during the so-called 
> _"nullable rollout phase"_ which ends in November with the expected release 
> of .NET 5 which should have nullable checks enabled by default.
> We can add .NET Core 3.1 as an additional target framework to get the 
> nullable checks and still also target .NET Standard to stay platform 
> independent and to also still support .NET Framework and older .NET Core 
> versions.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to