/explore
|
You are here |
www.4async.com | ||
| | | | |
livesys.se
|
|
| | | | | ||
| | | | |
nelson.cloud
You can use for-range loops to iterate through strings in Go without splitting because Go handles strings as byte slices. |
|
| | | | | ||
| | | | |
www.integralist.co.uk
The following code doesn't do what you might expect: package main import "fmt" func main() { var i *impl fmt.Println("i == nil:", i == nil) what(i) } type impl struct{} func (i *impl) do() {} func what(i interface{ do() }) { fmt.Println("i == nil:", i == nil) } If you expected the what function to print i == nil: true, then keep reading... Typed Nils The behavior observed is due to the way interfaces and nil values interact in Go. |
|
| | | | | ||
| | | | |
dusty.phillips.codes
In earlier articles, I introduced this "WAT to Wasm compiler in Roc" project, wrote some Roc code to load an input file, and implemented a tokenizer for a "hello world" of Wat to Wasm compilation. It was... more work than I expected. Four blog posts more work, to be precise! I have no idea where it's going to end. But I do know what's next! Parsing. Reminder: You are reading content that took a great deal of effort to craft, compose, and debug. |
|
| | | |||