Skip to content

Feature: show values of constantsΒ #8497

Closed
@lf-

Description

@lf-

I would find it really cool and useful if RA could tell me the values of numeric constants. I don't need a super fancy evaluation, even just an MVP that handles math operators would be absolutely rad.

The thing I would love to use this for is for double checking the hex value of bit hacks I've done to generate the right value, e.g. const TOP: usize = !0 & !(!0 >> 1);. Currently I either have to tab out of my editor to stuff it into another rust project or the playground, or just hope I got it right.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-tytype system / type inference / traits / method resolutionE-mediumS-actionableSomeone could pick this issue up and work on it right nowfunA technically challenging issue with high impact

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions