Re: [swift-evolution] Enable omitting `let` for constant declarations

2016-04-04 Thread Yuta Koshizawa via swift-evolution
> Radosław Hi. I found Stephen Celis proposed exactly same notations in the thread "Mutability inference". I guess it is what you talked about. > let a: String = "string" > b: String = "string" // short-hand avoids let > b := "string" // shorter-hand But it seems that it was not well discussed,

Re: [swift-evolution] Enable omitting `let` for constant declarations

2016-04-01 Thread Yuta Koshizawa via swift-evolution
Did you mean the thread "Mutability inference"? What I talked about is different from it. I am against the idea of "Mutability inference". What I talked about is just enabling to omit `let` for constant declarations. It distinguishes the following three explicitly. > - assignment > - declaration

Re: [swift-evolution] Enable omitting `let` for constant declarations

2016-04-01 Thread Radosław Pietruszewski via swift-evolution
I can’t easily find it, but there’s been at least one thread proposing this exact thing, and there was very little interest in the proposal. TL;DR is that Swift *by design* wants to make the difference between these three concepts: - assignment - declaration of a constant - declaration of a