sergiotaborda / lense-lang

The Lense Language Compiler
1 stars 0 forks source link

arithmetic operation between different types should be enhancements #81

Open sergiotaborda opened 3 years ago

sergiotaborda commented 3 years ago

number types should only provide operations with it self. Internal protected methods maybe e implemented to ease enhancements where needed. Conversion to Float is last resort. Conversions should occur upwards

natural -> integer -> rational -> float

decimals depend on context. rational + decimal is possible since decimals are a special kind of rationals ( n / 10^s)