Files
carbon-lang/proposals/p0646.md
T
38eb2c0d2f Low context-sensitivity principle (#646)
Establish a principle that understanding the meaning and performance should not depend on expensive context, and explain what makes context expensive.

Co-authored-by: Chandler Carruth <chandlerc@gmail.com>
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
Co-authored-by: Richard Smith <richard@metafoo.co.uk>
2021-08-03 10:20:46 -07:00

1.5 KiB

Low context-sensitivity principle

Pull request

Table of contents

Problem

Carbon needs a consistent policy on how willing we are to make syntax dependent on context.

Background

Rust has a statement of their ergonomic principles that talks about their approach to context dependence.

Proposal

We propose adding (docs/project/principles/low_context_sensitivity.md)[/docs/project/principles/low_context_sensitivity.md], which has the details.

Rationale based on Carbon's goals

This proposal supports the goal of making Carbon code easy to read, understand, and write particularly prioritizing "read and understand" over "write".

It supports software evolution by allowing code to be moved or refactored with fewer changes.

Further it supports developing performance-critical software in Carbon by making performance predictable.