amelentev / java-oo

Java Operator Overloading
http://amelentev.github.io/java-oo/
268 stars 31 forks source link

Expressions fail, assignment works #21

Open binkley opened 10 years ago

binkley commented 10 years ago

Contrast:

Money aDollar = Money.parse("USD1");
BigDecimal eight = new BigDecimal("8");
Money m = aDollar / eight;
m.getAmount();

With non-compiling:

(aDollar / eight).getAmount();
amelentev commented 10 years ago

Please provide Money class.