Skip to content
This repository was archived by the owner on Mar 10, 2022. It is now read-only.

Possible Syntax Adjustment #1

@bristermitten

Description

@bristermitten

This isn't anything fancy, just proposing a small tweak to function syntax

let print-hello = () => {
    print "Hello"
}

Would become

let print-hello = _ => {
    print "Hello"
}

And

let greet = (Person p) => {
    print "Hello " + p.name
}

Would become

let greet = Person p => {
    print "Hello " + p.name
}

Without parentheses

Just an idea, but it looks cleaner imo

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions