/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

www.4async.com
Go?
| | livesys.se


4.5 parsecs

Travel
| |
| | nelson.cloud

You can use for-range loops to iterate through strings in Go without splitting because Go handles strings as byte slices.
3.9 parsecs

Travel
| |
| | 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.
4.7 parsecs

Travel
| |
| | 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.
24.3 parsecs

Travel
|