Nullable types #103
Unanswered
djrietberg
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
JavaScript already has undefined and it pretty much behaves same way. You can use your C# types directly in JavaScript with YantraJS. So all Nullable can work well either way. Can you provide source code of what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am looking into script-libraries turning script into runnable IL, much like yours, which is very impressive work.
I was wondering if there is away to make Yantra work with c# nullable types.
I am working on a project where YantraJS would be exremely helpfull, but where NULL is different from 0(zero).
i.e. null is no answer given whereas zero can be a valid answer, so null + 5 should be null rather then 5.
I am aware this breaks away from the JS standards, but is a requirement for my project, and inline with how C# works with nullable types. I just looking to see if anyone can see a path towards this, whithout starting (almost) from scratch.
Many thanks
Beta Was this translation helpful? Give feedback.
All reactions