/cc es-discuss (sorry Brendan -- you always seem to be the target of my reply-all fails)
On Thu, Jan 12, 2012 at 2:01 PM, Dean Landolt <[email protected]> wrote: > > > On Thu, Jan 12, 2012 at 1:21 PM, Brendan Eich <[email protected]> wrote: > >> Sorry, are you seriously proposing that Node.js users when they specify >> file permissions should manually write that out? Come on! Sorry, that's >> just way too verbose and ugly. >> > > They don't have to, an octal string mode works just fine: > > fs.chmod(path, "0777") > > Octals can be little hazardous, and not just to noobs, but the hazard > isn't with literals, it's with parseInt: > > parseInt("022") // 18 > > Better than losing octal literals would be to throw out the unary version > of parseInt. Guessing the radix is crazy! I'm indifferent to whether octals > stay the same or grow a o, but parseInt could really use some love! >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

