daphne-project/daphne

Reconsider type inference for `EwPowOp`

Open

#776 opened on Jul 2, 2024

 (1 comment) (0 reactions) (0 assignees)C++ (84 forks)auto 404
buggood first issue

Repository metrics

Stars
 (80 stars)
PR merge metrics
 (PR metrics pending)

Description

The DaphneDSL expression 10 ^ -3 yields the unexpected result 0, since the results is returned as an integer just like the argument. It would be more intuitive to return 0.001, just like the DaphneDSL expression 10.0 ^ -3 does. To this end, we need to adapt the type inference for EwPowOp.

Contributor guide