by pguillory · 12y ago · 0 comments
fs.readFile(filename, function(err, data)
-- remember to check err
end)
With this binding the code would look like: local data = fs.readfile(filename)
-- err was raised if one occurred
With coroutines, you can use exceptions and for/while loops and they continue to work as you would expect.No comments yet.