tact-lang / tact-docs

Tact main documentation
https://docs.tact-lang.org
54 stars 41 forks source link

Split 'Composite types' into 'Structs and Messages' and `Optionals' #134

Closed anton-trunov closed 6 months ago

anton-trunov commented 6 months ago

It seems we don't have too many composite types at the moment, so bundling basically two entities together is not making much sense and decreases visibility of the aforementioned types. Also, when we add a 'Maps' chapter these three will look organically together in the table of contents:

novusnota commented 6 months ago

If anything, I'm thinking of adding maps (#135) into the Composite types page, as it technically counts. But your idea on visibility also makes sense, so I'll try locally applying it too to see which approach is best (maybe neither, as we'll discover alternative approaches)

anton-trunov commented 6 months ago

Yeah, composite types also would work, however I'd give these fundamental things more visibility (the less clicks or taps it takes to get there the better)

novusnota commented 6 months ago

Oh, I figured it out: we need to gracefully merge composite-types.mdx with types.mdx, while moving Structs, Messages and Optionals into their own pages. I'm on it :)

types.mdx would look like: