Re:Simplicity Made Easy
by coldtea on Wednesday June 26, 2019 @03:38AM
(#20282672)
>Perl's print (even in very old versions of Perl, dating long before say arrived) also accepts expressions as arguments, so you can write: `print join "\n", @array;`
How's that different from any other language? Isn't the expression argument evaluated before being passed to print, so at that point it's just a string anyway?
>>> print ", ".join(["a","b","c"])
a, b, c
Or, if the point is about omitting the automatic newline, comma in python suppresses it:
How's that different from any other language? Isn't the expression argument evaluated before being passed to print, so at that point it's just a string anyway?
Or, if the point is about omitting the automatic newline, comma in python suppresses it: