3 ms·
> unsurprising language --- This is a valid Go program. import "fmt"; func main() { fmt.Println("Hello world") } This is an invalid Go
by paulddraper 8y ago
> unsurprising language
---
This is a valid Go program.
import "fmt";
func main() {
fmt.Println("Hello world")
}
This is an invalid Go program.
import "fmt";
func main() {
// fmt.Println("Hello world")
}
Surprising.
---
Creating typed general-use data structures is impossible.
Surprising.
- tree_of_item 8y agoNope, you have to use imports. It's a little annoying but not "surprising" since the language shoves it in your face right away.
- paulddraper 8y agoYou're correct. I was in no way surprised by this language feature, and neither were any of my coworkers. Go is a thoroughly "unsurprising" language.
- 0xdeadbeefbabe 8y agoRave about porting cat to go and we'll restore your karma.
- paulddraper 8y agoMaybe I should also blog about how I was able to keep the size increase under 50x.
- erik_seaberg 8y agoA fatal error that prevents deployment is a lot more surprising than a warning.
- bschwindHN 8y agoYou shouldn't even be at the point of attempting a deploy if your code doesn't compile.
- tapirl 8y agoneither of your example is a valid Go program.
- paulddraper 8y agoHa, fair enough ;) Fixed
- sagichmal 8y agoThey are both still non-compilable.