5 ms·
Well, i can't speak for Wirth so i don't know why that didn't happen but my guess is that he either didn't think about it (i mean Pascal was already very expres
by badsectoracula 6y ago
Well, i can't speak for Wirth so i don't know why that didn't happen but my guess is that he either didn't think about it (i mean Pascal was already very expressive for its time) or it would considerably complicate both the language and memory handling for an arguably niche use case (remember that write not only accepts variable number of arguments but also different data types - and that doesn't even take into account the special syntax for padding, number of digits for reals, etc).
It is better to think read/write as akin to 'while', 'if', etc than as regular procedures. Making your own 'if' might be neat, but not something you'd see often outside of Lisp :-P