inkle / inkle/ink

"2" == 2 Correct?

Open
#116 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

```
=== test_null_string_int_compare
~temp numStrTest = "2"
~temp numTest = 2
~temp nullFakeStrTest = "null"
~temp zeroVal = 0
"2"==2: {numStrTest==numTest:Yes|No}
"null"==0: {nullFakeStrTest==zeroVal:Yes|No}
->DONE
```

Result:

```
"2"==2: Yes
"null"==0: No
```

It seems inkle will equate a matching string data-type and number data-type as "the same" . Is this normal/intended? I guess, from a non-programmer perspective, this appears more "friendly". Also, there's no NULL value right, so a workaround would be to use a fake "null" string convention value i guess?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.