FarNet 6.0.15 (next) will use nullable reference types #33
nightroman
announced in
Announcements
Replies: 1 comment
-
Update
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FarNet 6.0.15 enables and maintains nullable reference types (NRT).
See Nullable reference types.
In theory this does not change much for modules at runtime. But internal FarNet
code tweaks may have subtle effects. Please report unwanted changes or bugs.
It is up to modules to enable NRT or not. If a module enables NRT then FarNet
API now provides reasonable nullability hints at compile time as warnings.
Work in progress
At this moment not all API may reflect the actual nullability correctly.
Work is still in progress. Please report noticed discrepancies, e.g.
Potential drawbacks
There should not be any changes at runtime, in theory. If FarNet changes formal
nullability of some API items then modules should work as usual. But compiling
modules may produce new warnings.
Just do not enable NRT in modules if you would like to avoid warnings.
If a module already uses NRT... well, it has to deal with warnings.
PowerShellFar
PSF does not enable NRT yet, to be continued. This is not very important:
FarNetAPI.chm
Beta Was this translation helpful? Give feedback.
All reactions