golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
123.66k stars 17.62k forks source link

Is it possible to abbreviate the keyword 'func' to 'fn' similar to the syntax used in Rust? #60815

Closed kolinfluence closed 1 year ago

kolinfluence commented 1 year ago

I frequently work with Golang and I would appreciate it if there were shorter alternatives for its keywords. In fact, it would be great if all the keywords could be abbreviated.

Perhaps these changes could be introduced in a future update, like Golang 2.0. A single character like "f" could be a valid abbreviation too, provided that the potential for typos isn't an issue. I'm comfortable with the existing IDE and compiler error detection mechanisms, and with tools like ChatGPT and other AI assistants for validation and verification currently available and with even more AI tools available for concurrent use.

Given all this, it would be great to see enhancements in Golang 2.0 tailored towards AI applications with us programmers doing "shorthand" programming.

^ rephrased by chatgpt-4 with human tweak.

rnb42 commented 1 year ago

Is this a joke

GraHms commented 1 year ago

ahahahahahaha I think this is a Joke.

kolinfluence commented 1 year ago

@rnb42 @GraHms if you write golang 12 hrs daily, this will not be funny at all.

ianlancetaylor commented 1 year ago

@kolinfluence This is not a change that we can make at this point in the evolution of the language.