Martin Stjernholm, Roxen IS @ Pike developers forum wrote:
Your examples are from non-pike contexts and I think therefore of limited applicability:
Maybe. Then again, it's all about expectations. If things behave as one would expect, there is no learning curve.
The pike wrapper for the last (Stdio.File.open) does actually work for dirs too, but it's of very limited use (you can't read or write to an Stdio.File which has an opened directory). I dare say that's a bug too since it's neither useful nor expected.
In any case, if you'd change the behaviour, please document that it differs from POSIX (in order to help people like me understand the differences).