Hacker News new | ask | show | jobs
by vips7L 2451 days ago
Can we have a consistent function notation

void name(int a, int b) {}

C, C++, Java, and C# support this.

A single consistent notation will be helpful for new polyglots.

1 comments

Or func add(x int, y int): int { return x + y }

This way it would be consistent with how variable types are declared.

I was honestly just trying to show how ridiculous of a request GP is making.