Skip to content

What is the role of Binary? #261

Answered by GabrielDosReis
Xazax-hun asked this question in Q&A
Discussion options

You must be logged in to vote

The structural classes Unary, Binary, and Ternary are devices to capture structural commonalities of various IPR nodes in order to reduce implementation complexities (see how their are used <ipr/impl>). Their accessor functions are non-descriptive names such as first(), second(), and third() and -- in general -- not reflective of a deeper meaning. In particular, any permutation of such accessors is a structural isomorphism. Consequently, they are not interface functions to rely on directly. Of course, there are exceptions, e.g. arithmetic expressions, where a first() or second()` operand have more interface meaning.

If there is a more actionable issue to address in form of code, please fe…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by GabrielDosReis
Comment options

You must be logged in to vote
8 replies
@Xazax-hun
Comment options

@GabrielDosReis
Comment options

@Xazax-hun
Comment options

@GabrielDosReis
Comment options

@Xazax-hun
Comment options

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
Converted from issue

This discussion was converted from issue #258 on May 14, 2022 19:13.