Bruno Jouhier (2017-07-14T13:04:51.000Z)
bjouhier at gmail.com (2017-07-14T13:07:30.545Z)
> > No. It is a solution to a problem I have today: arithmetic on decimal values. > > would you enjoy debugging someone else’s production-code with overloaded > decimal operators? or would you prefer them having the courtesy to use > method-calls, thus saving the headache of having to inspect every > arithmetic expression? Well, my context is business apps (accounting). Lots of developers writing lots of rules doing arithmetics on decimal quantities (JS number is not an option). Operators will keep the code concise, readable and familiar. Code will be TypeScript so there will be typing hints everywhere (tooltips too) and debug-ability should not be an issue.
bjouhier at gmail.com (2017-07-14T13:06:55.872Z)
> > No. It is a solution to a problem I have today: arithmetic on decimal values. > would you enjoy debugging someone else’s production-code with overloaded > decimal operators? or would you prefer them having the courtesy to use > method-calls, thus saving the headache of having to inspect every > arithmetic expression? Well, my context is business apps (accounting). Lots of developers writing lots of rules doing arithmetics on decimal quantities (JS number is not an option). Operators will keep the code concise, readable and familiar. Code will be TypeScript so there will be typing hints everywhere (tooltips too) and debug-ability should not be an issue.
bjouhier at gmail.com (2017-07-14T13:06:27.776Z)
> > No. It is a solution to a problem I have today: arithmetic on decimal values. > would you enjoy debugging someone else’s production-code with overloaded > decimal operators? or would you prefer them having the courtesy to use > method-calls, thus saving the headache of having to inspect every > arithmetic expression? Well, my context is business apps (accounting). Lots of developers writing lots of rules doing arithmetics on decimal quantities (JS number is not an option). Operators will keep the code concise, readable and familiar. Code will be TypeScript so there will be typing hints everywhere (tooltips too) and debug-ability should not be an issue.