hashc icon indicating copy to clipboard operation
hashc copied to clipboard

Both intrinsics and primitives should be allowed to be defined in-source

Open kontheocharis opened this issue 1 year ago • 1 comments

To do this, there should be an attribute #[intrinsic] to label something as being an intrinsic, and it should be "linked" appropriately on the compiler side so that the intrinsic can be accessed symbolically.

For example, you should be able to do Term::Call(Intrinsic::TypeOf.fn(), [ty])

This should also allow defining a lot of the primitives in-source too.

kontheocharis avatar Sep 09 '23 15:09 kontheocharis