sgo icon indicating copy to clipboard operation
sgo copied to clipboard

A dialect of Go with optional types and without nil references.

Results 7 sgo issues
Sort by recently updated
recently updated
newest added

Just curious, if you will add Rust's `?` postfix iterator to decrease boilerplate code, caused by error checking? If considering this as a Go dialect then the philosophy of simplicity...

[This](http://fanyare.tcardenas.me:5600/?gist=98400d8a0c95b022839ff3cf883bad30) correctly doesn't compile, but then [this](http://fanyare.tcardenas.me:5600/?gist=e246d4245e751e6531d8e7c75423d80f) does and crashes.

bug

Given that [this](https://play.golang.org/p/dF-8DMCgmo) works (returns zero value) in Go, I don't see why [this](http://fanyare.tcardenas.me:5600/?gist=dcd2d79be96fda7d94f92c47190050b1) shouldn't in SGo (for maps with zero-able value types, of course).

enhancement

This should work: ``` go var x ?X x = X{...} // x has type X now ``` Right now you're forced to do this: ``` go var x ?X...

enhancement

Example: both `net/http` and `github.com/gorilla/websocket` use `net/url`, but if you try do to this: ``` go _ = &websocket.Dialer{ Proxy: http.ProxyFromEnvironment, } ``` you get this: ``` cannot use http.ProxyFromEnvironment...

bug

See: http://fanyare.tcardenas.me:5600/?gist=a9e7c9f17dfc7b724ae88253de48978b

bug