tact-lang / tact

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

Introduce comptime builtins corresponding to FunC string literal types #444

Open anton-trunov opened 1 week ago

anton-trunov commented 1 week ago

like h, c, etc. See https://docs.ton.org/develop/func/literals_identifiers.

I don't think we should extend the syntax of string literals with these suffixes, because those are too cryptic for beginners, we should just introduce those as compile-time builtin functions, like crc32("foobar") as a Tact analogue for "foobar"c in FunC.