-
Notifications
You must be signed in to change notification settings - Fork 17.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
proposal: cmd/go: add .ʕ◔ϖ◔ʔ as an alternate spelling of .go in file names #59968
Comments
(In all seriousness congrats to the Mojo team on their announcement. The rest of the language looks interesting, and I hope they join the open-source language club soon.) |
And, if the proposal for almost unthinkable reasons does not gain public approval, I propose a Go language and toolchain fork, naturally just called ʕ◔ϖ◔ʔ. EDIT: The unthinkable has happened. The work will proceed here: https://github.com/markuswustenberg/gopher |
Is there a proposal to add a new gopher emoji in the standard unicode character set ? |
IMHO, for this purpose, using numbers like |
AFAIK go is a language which does not believe in copying features from other languages. Just saying! 😇 |
Would this really work correctly on Windows? |
Following the aesthetics of Mojo and what the emoji set has to offer, I suggest supporting either of these file extensions instead:
|
I know it's bikeshedding, but why not go with the character ❤️ instead because "AI" also means love in nihon-go... I mean... Japanese. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Is it semantically correct for the eyes to be looking to the right, or should we consider any pupillary configuration as acceptable? |
We use the gold silver bronze emoji for that. Or the regional indicator 1/2/etc.
|
Out of all the ideas that should never happen, this one should never happen the most. I'm embarrassed on behalf of the community that this type of but-us-too stuff got posted. I'd expect this from other communities, but not us. |
Uhhhh it's May 4th, little late for April fools jokes, no? |
Oh c'mon, don't kill the fun 😁 |
This proposal is so fundamental that I wonder why this was not filed in 2009 already. I also second this extension to the proposal by
|
Easter eggs are always great 🐣 Emojis are amazing even more 🥳 |
and edit: this convention should only be used for mislabeled "unit tests" that interact with a database. |
Does this only apply to table-driven tests, or is it acceptable for a file named like this to contain any style of test? (edit) This naming convention implies that the table is being driven. We may need to find an alternate where the table is in control... 🤔 |
I'm calling the cops. This is bullshit. |
We've been maintaining a downstream fork of Go that supports the |
This is why I □ Unicode. :-) |
I think it's fine for the gopher to become progressively more menacing:
and so on. Makes sense to me. |
Yet another great innovation from Go that I want to see backported to Plan 9! If we can get the Plan 9 flavor C compiler to support a Glenda bunny-like suffix (🐇), I know my personal efficiency will increase. |
Why stop at the
|
I would recommend trademarking |
It should clearly be |
Retracting. This was fun but not a serious proposal. 😄 My apologies to those who were concerned we would actually introduce this kind of unnecessary ambiguity, complexity, and churn. 💩 Have a great weekend everyone. 🎉 Congrats again to Mojo on their launch. Hope to see you in the open-source world soon. 🔥 |
3, is perfect. wow |
Not easy to identify |
I don't even know how to type this symbol right now. |
This seems like a great idea to me Russ! I agree with ^^ that .ʕ👁ϖ👁ʔ would be more visually appealing though. 🔥 |
ʕ👁ϖ👁ʔ ʕ👁ϖ👁ʔ ʕ👁ϖ👁ʔ |
1 similar comment
ʕ👁ϖ👁ʔ ʕ👁ϖ👁ʔ ʕ👁ϖ👁ʔ |
ʕ👁ϖ👁ʔ To everyone who thought this wasn't a joke: how did you miss "For long-term migration, go fix can rename .go files to .ʕ◔ϖ◔ʔ" 😂😂 |
ʕ⊙ω⊙ʔ |
“gopher” is gonna be real gopher 🤓 hhhhhhh |
Don't use copy, How to input this symbol |
真会玩😅 再补充两个 |
ʕ⊙益ºʔ |
We could probably use |
Yeah, why strong typed languages, exact meaning definition using alphabet, let's go stone age way |
We should also build a new filesystem that supports multiline filenames, so we can be even more expressive in file naming.
|
So you suggest we go the full mile and then fell short! Your example should look like: ʕ◔ϖ◔ʔ 🏃 🦁.ʕ◔ϖ◔ʔ |
First a request should be raised to include Gopher as an emoji https://unicode.org/emoji/proposals.html |
And the second, - start producing keyboards with emojies |
I think we should also look into past and adopt |
I have good news regarding Linux and macOS... package main
import (
"fmt"
"os"
"path/filepath"
)
const filename = `main.
´.-::::::-.´
.:-::::::::::::::-:.
´_::: :: :::_´
.:( ^ :: ^ ):.
´::: (..) :::.
´:::::::UU:::::::´
.::::::::::::::::.
O::::::::::::::::O
-::::::::::::::::-
´::::::::::::::::´
.::::::::::::::.
oO:::::::Oo`
func main() {
fname := filepath.Join(os.TempDir(), filename)
fp, err := os.Create(fname)
if err != nil {
panic(err)
}
fp.Close()
info, err := os.Stat(fname)
if err != nil {
panic(err)
}
fmt.Println(info.Name())
} |
* BULLETTRAIN_GO_PREFIX is replaced by "ʕ◔ϖ◔ʔ" to approve the proposal: cmd/go: add .ʕ◔ϖ◔ʔ as an alternate spelling of .go in file names (golang/go#59968)
reference: golang/go#59968
reference: golang/go#59968 Signed-off-by: wangqing <wyuchemtsing@126.com>
The new (apparently closed-source) programming language Mojo uses files named .mojo, but it allows .🔥 as an alternate spelling of .mojo, as in
hello.🔥
.Issue #45549 tracks handling of unicode in import paths, module paths, and file names. We have been proceeding cautiously due to the many subtle issues involved in cross-platform support, case-insensitive file systems, and so on: modules must work equally well on all supported systems.
Clearly Go is being left behind in the Unicode race. We must not let this stand. I propose that we throw caution to the wind and standardize on .ʕ◔ϖ◔ʔ as an alternate spelling of .go, as in
hello.ʕ◔ϖ◔ʔ
.The change would be primarily in go/build:
.ʕ◔ϖ◔ʔ
files would be added to the GoFiles lists. There are probably a few places elsewhere in the toolchain that know the extension .go, such asgo tool compile x.go
writing outx.o
, or VS Code registering.go
as the file suffix it supports. These will no doubt be trivial to find.In #57001, there was some concern about the semantics of Go build tags changing meaning in a subtle way. We could address that by only applying the new semantics in
.ʕ◔ϖ◔ʔ
files. Older toolchains already have code to ignore those.There were similar concerns in the discussion #56010 about changing the semantics of for loops. The new
.ʕ◔ϖ◔ʔ
provides an answer:.go
files get the old for loop semantics, while.ʕ◔ϖ◔ʔ
get the new semantics.For long-term migration,
go fix
can rename.go
files to.ʕ◔ϖ◔ʔ
There are a few weeks left before the Go 1.21 freeze. That should be plenty of time for a careful, considered discussion of this proposal and then a complete implementation with no subtle problems. Let's
goʕ◔ϖ◔ʔ!The text was updated successfully, but these errors were encountered: