U seem to like this pic
>>61774722
pro: performance
con: everything else
I never grew into it.
go lang is a meme for the gullible
>>61774722
>>61775489
>>61775520
>>61775680
t. rustiggers
>>61774722
After the tutorial. Though I admit I really like the no exception handling.
>>61775489
So, no pros?
>>61774722
Languages like Rust, Swift and Elixir are way more advanced. So no need for a modern C.
>>61774722
I gave up when I was doing the official tutorial and couldn't figure out array splicing.
>>61776003
Those langages are too complicated.
t. C/ASM/Go babies who hate fancy functional retardation
>>61774722
Languages that try to disallow idiocy become themselves idiotic.
- Rob P., some guy at google
>>61776833
Well that's ironic.
>>61777034
He embraced the idiocy. That's where bliss is.
It has everything i want.
Compiled so no vm bullshit, easy deploys
Garbage collection
Easy concurrency
Higher order functions
Runs faster than meme script languages like python and javascript.
Some static typing
No exceptions which is a godsend
Compiles fast as fuck
Seriously, whats not to like? Dont get me wrong i wouldnt mind generics and a good package manager but beyond that go is pretty comfy and saves me a lot of headaches in the long run.
arr := []int{0, 1, 2, 3, 4, 5}
slc := arr[1:3]
fmt.Println(arr) // [0 1 2 3 4 5]
fmt.Println(slc) // [1 2]
slc = append(slc, 42)
fmt.Println(arr) // [0 1 2 42 4 5]
fmt.Println(slc) // [1 2 42]
I love how append affects underlying data that do not belong to slice being appended to.
And I also love how goroutines work, how I don't have to go through 3 shit libraries to find some that kinda works to get good job primitive to schedule them into multiple threads when I have no idea on compile-time how many threads is optimal. Sure C++ is still better at number crunching and C is portable on top.
Package manager sort of exists, there is gpm - simple shell script and config file that is putted into project and downloads dependencies with versions specified in configs with git. Shell script is about 60 loc and easy to understand (although creator made it Bash script, would prefer posix/bourne shell).