Skip to content

Are DataTypes needed? #73

Closed Answered by FredrikTaquist
mtf90 asked this question in AutomataLib Q & A
Mar 10, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

The DataType entity allows us to distinguish between types that happen to have the same Class<?>, but should not be treated as the same data type. For example, say that you have a userID and PIN data type, which can both be represented as integers, but are clearly not the same type.

Also, as you suggested the question, having a separate DataType allows us to have different theories for the different data types, even if the underlying Class<?> is the same. Since we plan to support more complex theories, such as learning with successors (guards of the form s2 == s1 + 1) it is useful to have this functionality.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mtf90
Comment options

mtf90 Mar 11, 2024
Maintainer Author

Answer selected by mtf90
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants