The postfix operator // seems more legible when applying formatting functions or functions that provide general information about an object, like Length does.
Is it acceptable to use it in those cases?
Example code:
StringJoin[
"Elements in Range ", n // ToString , " to ", nMax // ToString, ". Length: ",
Block[{}, flast = f] // Length // ToString, "."]
Or should i stick to using ToString[Length[...]]? This seems like "Yodaspeak" without the actual advantages of it.
ToString@Length[...]is objectively better thanToString[Length[...]]because it reduces the number of brackets that one needs to visually match up. – Szabolcs May 28 '18 at 15:32ToString@*Length@...and you need no brackets at all :-D – AccidentalFourierTransform May 28 '18 at 15:37ToString@Length@x, some others likeToString@Length[x]. I think that this is again entirely subjective. (I like the second, but there's no rational reason I can bring up. Perhaps it's just habit.)ToString @* Length @ xis not quite equivalent ... though it usually has the same effect. – Szabolcs May 28 '18 at 15:39