Skip to content

Right-align numbers #16

@geroldmeisinger

Description

@geroldmeisinger

What you think about this:

public→int→myint→=→123
protected→float→myfloat→=→0.5
private→string→mystr→=→"abc"

checks if the subsequent (non-space) character is a number and right-aligns them

public↔    int↔    myint↔   =↔ 123
protected↔ float↔  myfloat↔ =↔   0.5
private↔   string↔ mystr↔   =↔ "abc"

in most programming languages numbers can be defined as:

integer        123
float           +3.14
floatshort        .5
exponential     -5e6
hex         0xCAFE
octal        0o755 (ignore old notation: o755)
binary      0b1010

Keep it simple, stupid!

yayaya... but it is really simple! ... conceptually

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions