Jelena Perfiljeva wrote:
The differences between STRING and CHAR are not relevant in the context where this method can be used. What values could we possibly pass to it? It can only take a pathname.
Let me linger on this point a bit - because, well, you don't want that. You don't want any kind of programming language that leaves the decision over what might or might not be relevant in any kind of context to the system, because the system can not infer "relevance". You don't want to maintain and debug programs where the system's like "Well I could clearly see that what you wrote was nonsense, so I went ahead and changed stuff a bit to spare you the short dump. Oh, that shreded some material data? Sorry, Dave."
Getting something syntactically correct is hard enough for most people. Forcing developers to specify a complete context with an unambiguous definition of relevance in its various scopes - no. Humans may be good, but not that good.