Skip to content

Implement len builtin and strict list assignment#29

Open
pbedn wants to merge 1 commit into
masterfrom
codex/update-pb-lang-for-consistent-output
Open

Implement len builtin and strict list assignment#29
pbedn wants to merge 1 commit into
masterfrom
codex/update-pb-lang-for-consistent-output

Conversation

@pbedn

@pbedn pbedn commented Jun 25, 2025

Copy link
Copy Markdown
Owner

Summary

  • add len() builtin to typechecker and codegen
  • fix list assignment to disallow automatic append
  • emit Python-like IndexError messages
  • support printing multiple arguments on one line
  • update arr_rw example accordingly
  • add comprehensive tests for new behavior

Testing

  • pytest -q
  • python run_py_as_python.py examples/arr_rw.pb
  • python run.py run examples/arr_rw.pb

https://chatgpt.com/codex/tasks/task_e_685c5c75399c832190ec1c08c2d041a3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant