safe_call_pattern
Explain why pcall-style protected calls cannot be recreated and return defensive Lua patterns for risky cases: nil, type, and state checks plus ok/value helper wrappers.
Instructions
Explain why pcall-style protected calls cannot be recreated and return defensive Lua patterns for known risky cases.
Context: Use when code would normally use pcall/xpcall. It returns what is possible: nil checks, type checks, state checks, and small ok/value helper wrappers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topic | No | generic |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||