Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider Strengths and Weaknesses of Dynamic UTXO Typing #153

Open
JoshOrndorff opened this issue Nov 28, 2023 · 0 comments
Open

Consider Strengths and Weaknesses of Dynamic UTXO Typing #153

JoshOrndorff opened this issue Nov 28, 2023 · 0 comments

Comments

@JoshOrndorff
Copy link
Contributor

This issue is to discuss the strengths and weaknesses of the current way in which UTXO are dynamically typed.

The thoughts are explained mostly in the docs for the dynamic_typing module.

One strength not previously mentioned is that dynamically typing allows a convenient way to scrape for inehrents a la #130 (comment)

An alternative strongly typed approach would be to have each tuxedo piece provide an type to be aggregated. Simple pieces may have no types (and use ()) or a single type (like Coin) and use it directly. More complex pieces may have multiple types and will provide an enum themselves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant