You are browsing as a guest. Sign up (or log in) to start making projects!

25m 45s logged

Devlog: Direct Semantic Union Parameters

Now instead of having to do this workaround:

type Value = int | string
func accept(value: Value): bool

You can just pass semantic unions directly:

func accept(value: int | string): bool

That was it. All I had to do was remove a stale type_error clause in register_params and allow binding variables. Then I updated the two relevant accept functions in /examples.

0
11

Comments 0

No comments yet. Be the first!