3 ms·
>I'm not sure what you mean here. ast-macros can still wrap ast-macros. Yes, although sometimes text macros are useful, but ast-macros are generally much bette
by zzo38computer 8y ago
>I'm not sure what you mean here. ast-macros can still wrap ast-macros.
Yes, although sometimes text macros are useful, but ast-macros are generally much better yes.
>In the same way that I talk about cognitive overhead above, the requirement that a user manually pass around compile time information is dumb.
If the macro facility is sufficient, it would be implemented by the use of a macro; you do not need to then manually write it during each time. In C, you can use sizeof. Also sometimes you want to pass the array with a smaller length than its actual length (possibly at an offset, too).
- iopq 8y agoRust tracks this use case, as you can slice the array smaller and it will track that it was sliced off further. No need to remember this kind of thing.
- deleted 8y ago[deleted]