# Type Erasure & Script

**URL:** <https://delvingbitcoin.org/t/type-erasure-script/615>\
**Category:** Protocol Design\
**Created:** [February 27, 2024, 6:44pm UTC](https://delvingbitcoin.org/t/type-erasure-script/615 "2024-02-27T18:44:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Chris\_Stewart\_5](https://delvingbitcoin.org/user_avatar/delvingbitcoin.org/chris_stewart_5/32/296_2.png) [@Chris\_Stewart\_5](https://delvingbitcoin.org/u/Chris_Stewart_5)\
**Post date:** [March 12, 2024, 7:48pm UTC](https://delvingbitcoin.org/t/type-erasure-script/615/2 "2024-03-12T19:48:37Z")

</div>

So to be a bit pedantic - to have type erasure you have to have types in the first place. Script is _interpreted_ not _compiled_. It seems like this work would be similar to what miniscript is trying to achieve (IIUC miniscript correctly).

Compiled languages translate a higher level language (Java, C++, rust etc) to machine code. Script is similar to “machine code” IMO, which don’t have a type system. I don’t think the machine code level is the best place to be introducing a type system. x86 and arm64 don’t have them - why should Script?

---

_[View the full topic](https://delvingbitcoin.org/t/type-erasure-script/615)._
