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

feat: Struct & Message declaration syntax + Optionals #95

Merged

Conversation

novusnota
Copy link
Member

@novusnota novusnota commented Mar 11, 2024

Significantly modified the first page of the Book (about types), and added a "Defining composite types" page, which describes:

  • Structs
  • Messages
  • And optionals (nullable values, ?) with the showcase of a !! operator

Additionally, first page now makes a small reference to the new and non-existing yet page about Ints — it would be added today in a separate PR.

Closes #6.
As stated there #6 (comment), details on remaining keyword as well as bytes64 and bytes32 ones in TL-B serialization would be covered in a different PR, which would target #26 and tact-lang/tact#1178, and an update in /book/func page.

@novusnota novusnota requested a review from anton-trunov March 11, 2024 00:19
@novusnota novusnota mentioned this pull request Mar 11, 2024
@novusnota novusnota force-pushed the 6+26-message-and-serialization branch from bc78184 to 48ba7e0 Compare March 12, 2024 14:12
@novusnota novusnota force-pushed the 6+26-message-and-serialization branch from 48ba7e0 to abc80b2 Compare March 12, 2024 14:42
@novusnota
Copy link
Member Author

Ready for review

pages/book/types.mdx Outdated Show resolved Hide resolved
pages/book/defining-types.mdx Show resolved Hide resolved
…s/tact-docs into 6+26-message-and-serialization
added motivation to use custom numeric ids to match opcodes
@novusnota
Copy link
Member Author

novusnota commented Mar 12, 2024

  1. Removed null from primitive types
  2. Added motivation for using custom numeric ids to match opcodes (hope it's ok :)

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!

@anton-trunov anton-trunov merged commit 22e9e30 into tact-lang:main Mar 12, 2024
1 check passed
@novusnota novusnota deleted the 6+26-message-and-serialization branch March 12, 2024 18:27
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 message declaration syntax
2 participants