top | item 42088773

(no title)

freitzzz | 1 year ago

Function operations are possible in Go like it’s possible in any language that define function in the syntax. But functional programming goes beyond functions, and Go was not designed to support it.

I’m a fan of Go and FP and would love to see someone bridge other FP aspects like monads, in a way that feels natural in Go.

discuss

order

whalesalad|1 year ago

If one were to produce a Clojure analogue to Go, I think that would be pretty huge. Meaning, Clojure is to Java as XXXX is to Golang. Golang has atrocious syntax and - agreed - not really well suited for functional programming. But having a higher level language that could be compiled down to golang and leverage the ecosystem would be quite nice.

Was just talking about this during a 1:1 with a colleague of mine today. It's remarkable that language developers have set out to do clean sheet designs (golang, rust) and somehow managed to settle on gross syntax. If I were desigining a language today it would look and feel like Python without any of the performance hurdles.

geodel|1 year ago

> It's remarkable that language developers have set out to do clean sheet designs (golang, rust) and somehow managed to settle on gross syntax.

You are talking of your opinion as some kind of facts. What you call gross syntax is good enough for people to write enormous amount of useful software that millions and millions use daily. The same can't be said for Clojure.

jshen|1 year ago

I love Go's syntax. If you hate it, please use a different language. Diversity is good, monocultures are bad.