Mochabot log - CommonJS IRC channel: #commonjs on irc.freenode.net

2010-01-17:

[6:03] <jmerlin> man i wish javascript had operator overloading :(
[6:05] <spoob> i'm glad it doesn't. :)
[6:17] <jmerlin> :(
[6:18] <jmerlin> i want to implement true integers in my host application
[6:18] <jmerlin> but .. it wouldn't be any good without operator overloading
[6:18] <jmerlin> otherwise i'd have to have functions to do everything, annoying.
[6:31] <spoob> operator overloading is nice when you have one problem and you're solving it. when you start importing libraries that use operator overloading too, things get difficult very quickly
[6:33] <jmerlin> sure, but it isn't too much to ask that the engines t hemselves support it
[6:33] <jmerlin> such as, if you have a class you'd like to create to expose to JS, you can instruct the engine to call functions you define to handle certain operators
[8:31] <Dantman> Host objects I would buy in that
[8:32] <Dantman> Definitely nice to have == work for ObjectId's in Mongo drivers...
[10:52] <ashb> Dantman|sleep: spidermonkey allows you to overrid ==
[10:52] <ashb> but sure anything else does
[13:05] <ashb> one problem with downloading master tarballs from github- sha's make it quite hard to order/sort them
[17:58] <ashb> so an argument for being able to change the exports object (to a function/class)
[17:58] <ashb> it means you dont have to export something under a known name
[17:59] <ashb> for plugins and the like

 

 

Logs by date :