So Nim is more expressive and concise than Go. OK.
Nim is no doubt more expressive and concise than Go, but this comparison is seriously unfair in some situations. In addition, although Go is concise on the absolute scale I don't think it ever set out to be the most concise - it solves the problems that it set out to solve.
[1]: http://rosetta.alhur.es/compare/nimrod/go/#Read_entire_file [2]: http://rosetta.alhur.es/compare/nimrod/go/#Zero_to_the_zero_...
Examples:
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
vs cmd.Stdout, cmd.Stderr = os.Stdout, os.Stderr
and: if open == 0 {
fmt.Println("ok")
} else {
fmt.Println("not ok")
}
vs. if open == 0 {
fmt.Println("ok")
return
}
fmt.Println("not ok")Can't tell why. I think it's awesome. Languages like Ruby suddenly seem like they got a bunch of strange ends dangling all over the place.