I think that this is the best solution, and it just so happens to be consistent 
other languages (Java and Kotlin come to mind).
    
    
    import math
    
    echo 2f^2*2.0
    
    
    Run

You could even do this: 
    
    
    import math
    
    echo 2f^2*2
    
    
    Run

> However, the following code will raise an error as type mismatch...

It _is_ a type mismatch, so, **good**. I 've had it with languages whose 
solution for easily preventable errors is `Segmentation fault` or `Bus error`, 
especially when those errors could be caught at compile time.

Reply via email to