Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Invalid object type #57

Closed
Gemorroj opened this issue Jul 2, 2017 · 1 comment
Closed

Invalid object type #57

Gemorroj opened this issue Jul 2, 2017 · 1 comment

Comments

@Gemorroj
Copy link

Gemorroj commented Jul 2, 2017

If the object inherits object Decimal, methods from* return the wrong object.

example: https://gist.github.com/Gemorroj/f1a5ccc98d90615a3bf754b839b04300
I think #32 this is resolve problem

@castarco
Copy link
Contributor

castarco commented Jul 5, 2017

This library has many problems and shortcomings due to bad design decisions, but the use case that you are explaining here is not a good example of such problems. In fact, there are far better ways to represent prices (through composition, not through inheritance).

@castarco castarco closed this as completed Jul 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants