Skip to content

Make last argument to mid$ optional #47

@James-Livesey

Description

@James-Livesey

Like other implementations of BASIC, the length argument to mid$ should be optional to get the rest of a string from the starting index, just like substring in JavaScript.

Example (this should print ello:

10 print mid$("Hello", 1)

Currently, we get an Expected another argument to function error as mid$ expects three arguments.

Documentation will need changing to reflect the argument's optionality as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions