3 ms·
I wonder if embrace the unix stdin/stdout is the solution. I'm toying about a new languagte where each function have IN/OUT/ERR channels. So, is possible to d
by mamcx 13y ago
I wonder if embrace the unix stdin/stdout is the solution.
I'm toying about a new languagte where each function have IN/OUT/ERR channels.
So, is possible to do:
result | err = open('file)
This consume the ERR channel, however, if is not:
result = open('file')
it "trow". Inside the open, any raise is like a return for the ERR channel.
This combined with RAII & scope like in D:
http://dlang.org/exception-safe.html http://dlang.org/exception-safe.html