Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

feat: Integer update #97

Merged
merged 7 commits into from
Mar 14, 2024
Merged

Conversation

novusnota
Copy link
Member

Adds a new page to the Book — "Integers", which describes integer literals, serialization as tl-b types and more.

Closes #60
Closes #61

The page makes couple of references to the new page added there: #95

Copy link
Member

@anton-trunov anton-trunov left a comment

Choose a reason for hiding this comment

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

Awesome stuff! Left a few comments

pages/book/integers.mdx Outdated Show resolved Hide resolved
pages/book/integers.mdx Outdated Show resolved Hide resolved
pages/book/integers.mdx Outdated Show resolved Hide resolved
Adds a new page to the Book — "Integers",
which describes integer literals, serialization as tl-b types and more.
@novusnota
Copy link
Member Author

Added:

  • Info on limited use of underscores (no duplicate, no trailing)
  • Info on undesirable use of a leading zero in decimals
  • An example of the compute phase error when working with integers and their serialization

Changed:

  • defining-types is now composite-types, as that page also specifies how to use Structs and Messages
  • Made a clean-up of the composite-types page
  • types got a major clean-up and inter-linking with other parts of the Book. Additionally, added a sub-section for booleans right on it to not introduce a separate page for them. Motivation: in many languages booleans are used interchangeably with ints, so I felt that their description is closely related to the scope of this PR.

@anton-trunov anton-trunov merged commit 2cc6595 into tact-lang:main Mar 14, 2024
1 check passed
@novusnota novusnota deleted the integers-page branch March 14, 2024 08:01
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Document binary and octal integer literals Document underscores in integer literals
2 participants