Skip to content

Finalise variables #44

@adamstimb

Description

@adamstimb

How could finalising variables like in Scala be implemented in RM BASIC? From FB:

"Scala has assignments like "var x = 1.0" (can change) and "val x = 1.0" (cannot change). What I liked was that it doesn't take any extra typing to make variables final. Personally I'd have all variables final unless specified otherwise. Or you could have some alternative assignment operator instead of := to make it final."

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