Skip to content

"else if" to "ef" or other shorthand? #1114

@determin1st

Description

@determin1st

hey, what if livescript introduce shorthands to those basic statements?
not a real issue, just a question to discuss maybe.

if a > b
  true
else if a < b
  true

may become

if a > b
  true
ef a < b
  true

comparisons are perfectly aligned - is it better for code readability?
i've noticed new versions of php have both else if and elseif valid syntax constructs, also, python has elif statement that is perfectly aligned with else..

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