Comment

Comment by selfmodruntime

> Passing "self" as the first argument was bullshit in Python, and it's bullshit in Rust too. Don't look at me like that - the compiler can inject it as the first parameter without requiring you to type it in.

Nope, that would be a static function on your struct. By using self you let the compiler know that you want to use an instance function.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton