Go: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 24: Line 24:
* The simplest possible program (<tt>var a:=1; a = a + 1</tt>) is 1065952 bytes long. Why? What does it contain?
* The simplest possible program (<tt>var a:=1; a = a + 1</tt>) is 1065952 bytes long. Why? What does it contain?
* It is not immediately obvious what interface is implemented by a certain type. In order to make the correlation we need to scan the list of methods associated with the type and know those methods (or a subset of those methods) are in the method set of a certain interface.  
* It is not immediately obvious what interface is implemented by a certain type. In order to make the correlation we need to scan the list of methods associated with the type and know those methods (or a subset of those methods) are in the method set of a certain interface.  
* How to quickly (and idiomatically) assemble primitive in strings to be reported at stdout? In Java I used implicit conversion to String and + operator. When I find out write a [[Go Recipes|recipe]].


</font>
</font>

Revision as of 19:39, 31 March 2016

External

Overview

Go is a general-purpose language designed for systems programming. It is strongly typed ... (for more details go to Go Concepts).

Subjects

Questions

  • The simplest possible program (var a:=1; a = a + 1) is 1065952 bytes long. Why? What does it contain?
  • It is not immediately obvious what interface is implemented by a certain type. In order to make the correlation we need to scan the list of methods associated with the type and know those methods (or a subset of those methods) are in the method set of a certain interface.
  • How to quickly (and idiomatically) assemble primitive in strings to be reported at stdout? In Java I used implicit conversion to String and + operator. When I find out write a recipe.