Sitelet https://github.com/casey/just/issues/3248
Skip to content

Stabilize user-defined functions #3248

Description

@casey

User-defined functions were added in #3247 with the following syntax:

foo(a, b) := a + b

They are currently unstable, since I'm not sure about the syntax. The alternative that I'm considering is:

fn foo(a, b) := a + b

I personally think the syntax without fn looks better, but with fn allows grepping for function definitions with ^fn, however I'm not sure if that's a huge advantage.

Feedback on the syntax is most appreciated, in either direction. In addition to the syntax, the behavior questions below need to be settled before stabilization.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions