Skip to content

Semantics of adding non-number objects to numbers #19

Open
@smarr

Description

@smarr

A SOM spec should define what needs to happen on operations like: 0 + 'a'.

Most SOMs currently error with some implementation-level exception/crash.

CSOM goes a little wild:

---> 0 + 'a'
it = 4411137528
---> 0 + 'a'
it = 4411139328

Perhaps this needs to trigger Integer>>#unsupportedArgument:, or a NotANumber error.

A spec definitely needs to have an opinion on such programs.

See softdevteam/yksom@4fb753c and softdevteam/yksom#37.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedPull requests very welcome (usually easier than other issues)specNeeds specification, or is specification related.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions