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

Use "unit type" instead of "value type" #4332

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamil-tekiela
Copy link
Member

Comment on lines 70 to 85
<listitem>
<simpara><type>true</type></simpara>
<simpara>
<link linkend="language.types.unit">Unit types</link>
</simpara>
<itemizedlist>
<listitem>
<simpara><type>false</type></simpara>
</listitem>
<listitem>
<simpara><type>true</type></simpara>
</listitem>
<listitem>
<simpara><type>null</type></simpara>
</listitem>
</itemizedlist>
</listitem>
Copy link
Member

Choose a reason for hiding this comment

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

I disagree with this change, since gettype(false) returns boolean. Thus the boolean type is not simply the union of the true and the false type, but an independent type.

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.

null is also a value type
2 participants