KittyCAD / modeling-app

The KittyCAD modeling app.
https://kittycad.io/modeling-app/download
MIT License
422 stars 35 forks source link

More flexible operands in KCL operators #783

Closed adamchalmers closed 3 months ago

adamchalmers commented 1 year ago

Currently KCL parser cannot handle using function calls as operands.

e.g. this works:

let x = f()
let y = x + 1

but this doesn't

let y = f() + 1

It should work, though!

jtran commented 3 months ago

This works, so maybe it was already fixed.

Screenshot 2024-07-25 at 6 20 05 PM
jessfraz commented 3 months ago

Huh we should make sure we have a test for it so it doesn't break