Latest Crockford's JSLint have an option to alert Sync functions usage. You proposal is more complicated, I don't really think how to realize this :(
четверг, 19 апреля 2012 г., 21:46:37 UTC+4 пользователь Bruno Jouhier написал: > > Sync calls should only be allowed in startup sequence and in require. > > Would it be possible to have a "strict async" switch that make all Sync > calls throw if called outside of startup or require sequences? > This would make it easy to spot libraries that are potential perf killers. > > Bruno > > On Thursday, April 19, 2012 3:22:26 PM UTC+2, Ben Noordhuis wrote: >> >> On Thu, Apr 19, 2012 at 14:35, Tim Caswell <[email protected]> wrote: >> > I wonder why node doesn't just expose a sync version of the zlib >> functions. >> > It's not like they are performing I/O or anything. FWIW I intend to have >> > both sync and async in luvit's zlib bindings unless there is a good >> reason >> > not to. >> >> Here's why: >> https://github.com/joyent/node/issues/3128#issuecomment-5197171 >> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
