# Method-style builtins

> If obj.method(args) is called and obj is an identifier, the interpreter first checks for a registered builtin named "obj.method" . If found, it is called with just args (not...

Website: https://harnlang.com/spec/language/22-method-style-builtins.html

This page documents Harn, which is pre-1.0. Language, standard library, and CLI APIs may change. If the intended version is unclear, clarify before using this page.

---

<!-- Generated from spec/chapters/*.md by scripts/sync_language_spec.harn -->

## Method-style builtins

If `obj.method(args)` is called and `obj` is an identifier, the interpreter first checks
for a registered builtin named `"obj.method"`. If found, it is called with just `args`
(not `obj`). This enables namespaced builtins like `experience_bank.save(...)`
and `negative_knowledge.record(...)`.

---

## Read next

- [Iterator protocol](https://harnlang.com/spec/language/21-iterator-protocol.md)
- [Runtime errors](https://harnlang.com/spec/language/23-runtime-errors.md)
