uw-switch-semantics #53
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "uw-switch-semantics"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Test case illustrates:
That is, the construct asserts a 'singleton map' (only one map key), essentially working like a tagged tuple. This can be used to provide a dictionary of valid message types, each 'tagged' with a 'singleton map'.
(One could imagine letting the pattern work on records as well, but nyi).
The PR also adds version-controlled type management, and the
gmser_dyn_types
module provides some slightly improved ways to define a type map.Example of Types expansion (e.g. for sending to a client):
Note how the template funs for types
foo
andbar
have been expanded, using the embeddedvsn
attribute.