1. 程式人生 > >A preview of Go version 1

A preview of Go version 1

5 October 2011

We want to be able to provide a stable base for people using Go. People should be able to write Go programs and expect that they will continue to compile and run without change, on a timescale of years. Similarly, people should be able to write books about Go, be able to say which version of Go the book is describing, and have that version number still be meaningful much later. None of these properties is true for Go today.

We propose to issue a Go release early next year that will be called “Go version 1”, Go 1 for short, that will be the first Go release to be stable in this way. Code that compiles in Go version 1 should, with few exceptions, continue to compile throughout the lifetime of that version, as we issue updates and bug fixes such as Go version 1.1, 1.2, and so on. It will also be maintained with fixes for bugs and security flaws even as other versions may evolve. Also, production environments such as Google App Engine will support it for an extended time.

Go version 1 will be a stable language with stable libraries. Other than critical fixes, changes made to the library and packages for versions 1.1, 1.2 and so on may add functionality but will not break existing Go version 1 programs.

Our goal is for Go 1 to be a stable version of today’s Go, not a wholesale rethinking of the language. In particular, we are explicitly resisting any efforts to design new language features “by committee.”

However, there are various changes to the Go language and packages that we have intended for some time and prototyped but have not deployed yet, primarily because they are significant and backwards-incompatible. If Go 1 is to be long-lasting, it is important that we plan, announce, implement, and test these changes as part of the preparation of Go 1, rather than delay them until after it is released and thereby introduce divergence that contradicts our goals.

Today, we are publishing our preliminary plan for Go 1 for feedback from the Go community. If you have feedback, please reply to the thread on the golang-nuts mailing list.

相關推薦

A preview of Go version 1

5 October 2011 We want to be able to provide a stable base for people using Go. People should be able to wr

A Tour of Go: Basics 1

unicode x64 連續 變量名 and export int asi constant Packages, variables and functions Packages packages中,以大寫字母開頭的name是exported name,當import pa

後端程序員之路 52、A Tour of Go-2

run arrays primes var auto 程序 pointer ase tex # flowcontrol - for - for i := 0; i < 10; i++ { - for ; sum < 1000;

A Tour of Go: Basics 2

原則 panic https 動作 語言 表達 包括 for cas For For語句有三個基本部分組成,以分號隔開: 初始語句:只在第一次循環開始前執行,通常就是變量定義和初始化,這裏定義的變量作用範圍只在For循環本身。 條件表達式:每一次循環開始前執行,當fals

A Tour of Go: Basics 3

容量 返回 nil cap 創建 都是 變量 code str Struct 用指針和用變量名引用struct裏的值,用法是一樣的。Struct初始化語法: type Vertex struct { X, Y int } var ( v1 = Vertex{

A Tour of Go實踐總結

轉載 1,go的變數宣告順序是:”先寫變數名,再寫型別名“,此與C/C++的語法孰優孰劣,可見下文解釋:http://blog.golang.org/gos-declaration-syntax 2,go是通過package來組織的(與python類似),只有package名為main的包可以包含main

Go version 1 is released

28 March 2012 Today marks a major milestone in the development of the Go programming l

Cannot switch on a value of type String for source level below 1.7. Only convertible int values or enum variables are permitted

perm eve mit can source string per ted idt 在java中寫switch代碼時,參數用的是string,jdk用的是1.8,但是還是報錯,說不支持1.7版本以下的,然後查找了項目中的一些文件,打開一個文件如下,發現是1.6的版本,好奇

A Bite Of React(1)

lec add constant ant app span javascrip imp this react: component and views : produce html abd add them on a page( in the dom) <impor

Version 1.7.0_80 of the JVM is not suitable for this product.Version: 1.8 or greater is required.

2種 方法 mar 技術 bin 啟動 product 分享圖片 1.7 Eclipse啟動失敗,設置eclipse啟動jdk有2種方法 第一種: 直接安裝eclipse對應的jdk版本,並設置環境變量 第二種: 修改eclipse配置文件eclipse.ini

CHAPTER 1 ----- a tour of computer sysytems(2)

reads 地址 cpu mach sin sel error evel over 1.3 It pays to understand how compilation systems work Why programmers need to understand how

Xamarin.Android 使用 SQLite 出現 Index -1 requested, with a size of 10 異常

查詢 else bubuko local 獲取 roi sum 圖片 next() 異常: Android.Database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 10 此錯

Version 1.5 of the JVM is not suitable for this product.Version:1.6 or greater is required

近期在公司涉及到了伺服器等的擴充套件,smartfoxserver擴充套件使用的Eclipse,儘管沒學過java。可是咱畢竟是C++起價的,其它語言看看也就會了,專案依然做著,近期看到某同學有一些java的問題,小問題就隨便在公司幫忙攻克了下,只是後來有個專案發現有些麻煩,準備下班後再看

1 TypeError: Index(...) must be called with a collection of some kind, ' ' was passed columns

今天犯了這個錯誤 ,查到的解決方法如下 columns : Index or array-like Column labels to use for resulting frame. Will default to np.arange(n) if no column labels

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.1:test (default-test) on project sharp-common: Execution default-test of go

1 [INFO] Scanning for projects... 2 [INFO] 3 [INFO] -----------------------< com.sharp:sharp-common >----------------------- 4 [INFO] Buildin

Android問題:報錯Index -1 requested, with a size of 1

使用Cursor使,讀取裡面的資料用到getColumnIndex()時報錯:      Index -1 requested, with a size of 1       仔細閱讀過C

Spring Boot - An incompatible version [1.2.12] of the APR based Apache Tomcat Native library is...

Spring Boot在目前的專案開發中已經逐步火熱起來,既然是一種技術在使用的過程中出現問題在所難免,在一次初始化Spring Boot專案啟動時,我遇到了一個啟動失敗的問題,日誌給出的資訊An incompatible version [1.1.14] of the APR ba

A rookie of python_crawler----1(tf)

記錄一個菜鳥學習爬蟲的過程 下面這個程式碼很簡單,爬取的是TF官網上熱門口紅的資訊 採取的是最基本的BeautifulSoup和requests庫 #A simple code for crawling the information of the popular TF-lipstick

Requested 'libusbmuxd >= 1.1.0' but version of libusbmuxd is 1.0.10解決辦法

遇見問題 在部署Flutter執行環境時遇見一個問題: 在終端執行 flutter doctor:下面報錯,並提示 brew install --HEAD libimobiledevice brew

Cannot switch on a value of type String for source level below 1.7. Only

switch語句的判斷條件可以接受int,byte,char,short,不能接受其他型別 只有JDK版本1.7以上才可以支援String 你可能會說我的jdk是1.7以上啊, 這裡說的版本是java直譯器的版本, eclipse修改辦法: 專案右鍵 > pr