logoalt Hacker News

kiitoslast Tuesday at 10:02 PM0 repliesview on HN

Paste exactly what commands you run and exactly their output, including exactly the rev of the repo you're running them in.

> Remove the file and the error disappears

Remove the file and the code no longer compiles, because the file contains definitions that are used by other code in the package. If removing that file doesn't break your build, something is wrong with your build!

Your Makefile seems to be calling `go test src/tests/*` which is invalid syntax, I suspect that's just one of many similar kinds of mistakes, and likely indicative of a misunderstanding of the language tooling...

> https://github.com/codr7/shi-go/blob/main/src/shi/call.go

This code is buggy from tip to tail, my goodness! Starting with no `gofmt` formatting, everything in https://github.com/codr7/shi-go/blob/main/src/shi/vm.go, invalid assumptions in everything that embeds a Deque, no meaningful tests, misuse of globals, the list goes on and on... ! It seems like you're programming against a language spec that you've invented yourself, maybe influenced by Go, but certainly not Go as defined!