Comment

Comment by jacobvosmaer

>not necessarily much safer than void*

You can cast void* to anything you want. With interface{} you get a type check, either through an assertion or a panic. That is a big difference in safety.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton