opshin icon indicating copy to clipboard operation
opshin copied to clipboard

Implement fractions with class methods i.e. __add__ and __mul__ etc

Open nielstron opened this issue 6 months ago • 1 comments

Is your feature request related to a problem? Please describe. Currently, fraction handling is very tedious, requiring specialized functions like frac_mul(x, y) to multiply fractions.

Describe the solution you'd like Since #366 was resolved, it is now possible to implement dunder methods for the Fractions class in the fractions std lib - this would allow overwriting the behavior of i.e. __add__ s.t. x + y is valid when x and y are Fractions.

Describe alternatives you've considered None

Additional context None

Bug bounty: 300 ADA

nielstron avatar Jul 31 '24 18:07 nielstron