Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added isNaN - need testing #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MTayyabHanif
Copy link

@MTayyabHanif MTayyabHanif commented Jul 25, 2017

You haven't described how to use this repo, But reading the code, I've added this isNaN functions.
This needs testing.

let params = ctx.next().value
return #`isNaN ${params}`;
}

// if

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kya_galat -> isNaN ? I think it can be misleading.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How?
The isNaN() function determines whether a value is NaN (Not-a-Number) or not
I chose "kya_galat" because it returns "true" if the given value is NaN; otherwise, "false."
Do you have any suggestions?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about number_nahi ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we think of something without underscore? It looks weird for a language keyword.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be good if we can have list of possible suggestions because pronunciation and writing in present case can cause confusion.
btw is there any such pure urduish for such a case.
or can be like kyaNumber or kyanumber numberHae
like in English we have a short form for NaN i.e. Not-a-Number, can't it could be KnH Kya-number-Hae or something similar ?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

KnH is better though.

Anybody else?
Should I change kya_galat to KnH ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we are inheriting from JavaScript, we should rather use camelCase than snake_case.
secondly isNaN => (isNotANumber()), so kyaNumberNhi kNN makes more sense than knH
k should be small so as to know its a method, not a class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants