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

Remove the description of None from docs #1212

Merged
merged 2 commits into from
Jan 25, 2019
Merged

Conversation

nrryuya
Copy link
Contributor

@nrryuya nrryuya commented Jan 22, 2019

- What I did

None is not supported (#1106) so I removed the description from docs.

- How I did it

- How to verify it

- Description for the changelog

Removed the description of None from docs

@jakerockland
Copy link
Contributor

@nrryuya @jacqueswww that section of the docs may be a place that it is helpful to add another line noting the usage of the clear() function, something like:

In Vyper, there is no null option like most programing languages have. Thus, every variable type has a default value. In order to check if a variable is empty, you will need to compare it to its type's default value.
If you would like to reset a variable to its type's default value, use the built-in clear() function.

@jacqueswww jacqueswww merged commit 6f0d5a1 into vyperlang:master Jan 25, 2019
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.

3 participants