Uid.Make
This is the generative functor that ensures that two modules resulting from two different calls to Make
will be viewed as different types t
by the OCaml typechecker. Prevents mixing up different sorts of identifiers.
type info = X.info
val format : Stdlib.Format.formatter -> t -> unit
val to_string : t -> string
val id : t -> int
Returns the unique ID of the identifier
While id
returns a unique ID valable for a given Uid instance within a given run of catala, this is a raw hash of the identifier string. Therefore, it may collide within a given program, but remains meaninful across separate compilations.