winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.73k stars 185 forks source link

Enforce serializable types for inflight methods on preflight classes #6475

Open Chriscbr opened 1 month ago

Chriscbr commented 1 month ago

The motivation would be to add a constraint so that we can guarantee inflight methods on preflight classes can be safely called from other language runtimes.

We may also want to consider where we don't need to enforce this -- for example, perhaps private methods and fields can be allowed to use non-serializable types.