ybogdanov / node-sync

Write simple and readable synchronous code in nodejs using fibers
MIT License
492 stars 70 forks source link

Implicit `this` #14

Closed paulmillr closed 12 years ago

paulmillr commented 12 years ago

What do you think about making this argument implicit in Function::sync()?

fs.readFile.sync('file.txt') is more readable as compared to fs.readFile.sync(null, 'file.txt').

ybogdanov commented 12 years ago

Hi Paul,

Stop. Think about it again. At least 10 minutes. And then, if you think this will work, I'll reopen this issue ;)