Skip to content

Conversation

aviatesk
Copy link
Member

@aviatesk aviatesk commented Aug 4, 2025

Found by opening the compiler folder with JETLS.

Found by opening the compiler folder with JETLS.
@@ -3081,7 +3079,7 @@ end
function abstract_eval_new(interp::AbstractInterpreter, e::Expr, sstate::StatementState,
sv::AbsIntState)
𝕃ᵢ = typeinf_lattice(interp)
rt, isexact = instanceof_tfunc(abstract_eval_value(interp, e.args[1], sstate, sv), true)
Copy link
Member

@topolarity topolarity Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth using a convention that some other languages use and allowing the variable to be unused if it is prefixed with _? (_isexact in this case)

seems a minor shame to lose the info about what this value is just because it is unused, esp. if it becomes used in the future

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be OK with this. It doesn't even need to be a real convention, just a JETLS one.

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

Successfully merging this pull request may close these issues.

3 participants