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.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.