Skip to content

[NEXT] Functions vs Methods in Builtins #80

Description

@Sir-NoChill

Motivation

Our builtins are a bit scattered right now. We have special vector 'methods' (vector a; a.len(); // etc) and then we have builtins for the arrays as well (length(a)). We should try to unify the syntax of these builtins, perhaps switching arrays to a generic shape(a) function that works on arrays and scalars alike. That would make our vectors more consistent and make the spec slightly less confusing me thinks.

Tasks

  • Discuss [NEXT] Fully supported, user-defined types with custom operations? #63 and the implications of full method systems in gazprea
  • Changes to the spec for builtins and the stdlib that seems to be growing out of these discussions
  • Discuss what this means for array shapes, are there problems with extending arrays to an arbitrary sized 'tensor'-like concept?

Metadata

Metadata

Assignees

No one assigned

    Labels

    nextFuture updates to the spec not implementable for the current year

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions