Walnut356@programming.dev to Programming Horror@programming.devEnglish · 1 year agoWhen your language doesn't allow arbitrary expressions in format stringsprogramming.devimagemessage-square6fedilinkarrow-up17arrow-down10
arrow-up17arrow-down1imageWhen your language doesn't allow arbitrary expressions in format stringsprogramming.devWalnut356@programming.dev to Programming Horror@programming.devEnglish · 1 year agomessage-square6fedilink
minus-squarelad@programming.devlinkfedilinkEnglisharrow-up1·1 year agoWell, that’s all true from an end user perspective. But consider that format! is a macro and as such it should process its format string. Calling something from inside evaluation of a format string really does seem weird in that regard
Well, that’s all true from an end user perspective. But consider that
format!
is a macro and as such it should process its format string. Calling something from inside evaluation of a format string really does seem weird in that regard