![]() ![]() This contrasts with C's int i = 3 and const char * s = "Hello, world!". A combined declaration/initialization operator was introduced that allows the programmer to write i := 3 or s := "Hello, world!", without specifying the types of variables used. Go's syntax includes changes from C aimed at keeping code concise and readable. ![]() A desire to keep the language specification simple enough to hold in a programmer's head, in part by omitting features that are common in similar languages.A toolchain that, by default, produces statically linked native binaries without external Go dependencies.An interface system in place of virtual inheritance, and type embedding instead of non-virtual inheritance.Built-in concurrency primitives: light-weight processes (goroutines), channels, and the select statement.Distinctive approaches to particular problems:.Remote package management ( go get) and online package documentation.Optional concise variable declaration and initialization through type inference ( x := 0 instead of int x = 0 or var x = 0 ). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |