3 ms·
As I understand it, print() was created not from a sense of consistency, but because a few awkward cases could be simply solved by turning print from a statemen
by sirtaj 10y ago
As I understand it, print() was created not from a sense of consistency, but because a few awkward cases could be simply solved by turning print from a statement into an expression. Use in lambdas would be one example.
- mixmastamyk 10y agoI don't like the extra parens, but I made an editor shortcut to alleviate that. Other cases such as redirecting to a file, and changing the line ending are handled much more intuitively with the print function.