7 ms·
Care elaborating on why is it a better Golang?
by xkarga00 12y ago
Care elaborating on why is it a better Golang?
- S4M 12y agoIt has generics, for once?
- kxo 12y agoWithout pointing out specifics: Nim has comparable ambitions to Go but Nim actually has escape hatches for people that desire "more."
- iopq 12y agoBetter metaprogramming, significant whitespace, generics, etc.
- wtf_is_up 12y ago> significant whitespace That's not an advantage
- msandford 12y agoSo says you. The entire python community disagrees, and that's not an inconsiderable number of folks.
- dragonwriter 12y agoNo, the Python community consists of a mix of people who think that the manner in which whitespace is significant in Python (most languages have significant whitespace of some form) is advantageous, people who think it is neither advantageous nor disadvantageous that are attracted to the language for other reasons, and people who think that it is disadvantageous, but not so much as to negate other advantages they see in the language. It is a mistake to conclude that because language X has feature Y, the entire community around language X thinks that feature Y is a positive feature.
- wtf_is_up 12y ago> entire python community disagrees I can tell by the downvotes. Also, you can't prove that.
- iopq 12y agoIt's an advantage for me, not for you. I've had experience with both and I prefer significant whitespace. The only place where I found it to be a problem was in Jade templates since HTML is kind of white-space sensitive (spaces between tags cause spaces in the output). I do like programming with significant whitespace.
- andybak 12y agoFrom my personal perspective - it's a major plus when choosing a language - under the general auspices of "readability counts". I find Python-like languages much easier to read and maintain - and significant whitespace is a not-insignificant factor in that.
- pekk 12y agoIndentation helps, but it's a pretty pointless thing when you make a lot of other decisions that hurt readability.
- SamReidHughes 12y agoIt's not like code in other languages isn't indented.
- Roboprog 12y agoWell, not for the offshore and other coderz around that can't / won't cleanly indent if their lives depended on it.
- rdtsc 12y ago> That's not an advantage Yes it is. I have been programming Python, C++, Java and C# over the last 10 years. Python's convention for white-space beats the other ones hands down both when writing and reading large code bases.
- beeworker 12y agoJust about everything is better than Go. Nim, Rust, OCaml, Haskell... Did you read the submission? And for further enlightenment, the link to the previous post on the blog about what makes Nim special? Here's a link to a rant comparing Go and Rust, which includes some links of its own highlighting further issues with Go: http://www.quora.com/How-do-Go-and-Rust-languages-compare http://www.quora.com/How-do-Go-and-Rust-languages-compare
- rudolf0 12y agoI like to think of Go as a niche language with excellent tooling for small-medium microservices and various forms of networking clients and servers. When you look at it in that light, it's not a bad language. It's an okay language missing a lot of features (many based on good intentions, some due to what I consider poor design) that could make it a good language. Rust is objectively much better, but I suspect that for the next 5 years, Rust will only remain popular for systems programming but not application/web dev, and Go will only remain popular for what it's currently doing but not systems programming (with some semi-exceptions like Docker and Kubernetes, though that's not really systems programming).
- deleted 12y ago[deleted]
- xkarga00 12y agoI've read both the submission and the articles that exist inside that Quora link you posted and I am still not convinced. IMO what makes a language better is end products and not features. When Rust becomes stable, its community will produce great software but I don't think all of the rest languages you mentioned have produced (or will do) better software than Docker, Kubernetes, OpenShift, etcd, btcd, and a ton of other Go software.
- gnuvince 12y ago> IMO what makes a language better is end products and not features. It's useful to distinguish between "the language" and "the tool". Some programming languages are terrible from a language design perspective (PHP, JavaScript, MATLAB), but they still have great tools (IDEs, build tools, package managers) and libraries to help programmers create good and interesting software.
- fiatjaf 12y agoI don't know if it is, I use Golang and I never used Nim, but the source code from Nim is way prettier: http://rosetta.alhur.es/compare/nimrod/go http://rosetta.alhur.es/compare/nimrod/go
- pekk 12y agoAs a Python programmer, I find the Nim version needlessly cryptic, glyph-laden and ALGOL-esque, with many of the unattractive traits of Python from 10-15 years ago. If I get the choice to start out in a codebase which looks like this from brand new, I'll certainly pass. That's sad when "prettier" is really all that's being offered here.