tact-lang / tact

Tact compiler main repository
https://tact-lang.org
MIT License
280 stars 56 forks source link

Add `.toSlice()` extension function for Structs and Messages #474

Open novusnota opened 4 days ago

novusnota commented 4 days ago

One can do Struct.toCell().asSlice() already, but for consistency reasons we probably should have .toSlice() too. For example, StringBuilder has it, and it would also mirror the .fromSlice() method nicely.

As mentioned in: https://github.com/tact-lang/tact-docs/pull/271#discussion_r1651512617