Skip to content

Why aren't the IR classes public? #2710

Answered by MikeStall
bricelam asked this question in Q&A
Discussion options

You must be logged in to vote
  1. We do eventually want to make the IR classes public. The challenge has been a)_low demand, b) once they're public, we can't change them - so we need to be very confident they're the right shape. Per that, we generally keep things internal as much as we can, and then make public surface area in a very controlled, scrutinized way.
  2. CheckResult will handle binding, infererence, etc.

For example, DType is the internal type class. But not a good, stable, public surface. So we wrapped that in FormulaType - and make that public.

Can you tell me more about what kind of translation you want?

Replies: 1 comment 1 reply

Comment options

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

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