Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

'fn' for defining function types, not for function declaration. #45

@soldate

Description

@soldate

Hi, i realy like the c3 approach of being a better c.

But 'fn' in front of function declarations IS A superfluous and an arbitrary deviation from C.

However 'fn' for defining function types and lambdas ARE GREAT.

// === GREAT FN ===

def Foo = fn int();

Foo lambda = fn int() { return 1; };

Foo lambda_short = fn () => 1;

// == NOT OK, TERRIBLE FN ==

fn void my_function(int a) { return a * a; }

Please remove the terrible one from c3! :-D

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