93. One-spelling syntax rulings & position/range/enum ergonomics (2026-11-21)
- Built-in
MemberKind::Getproperties (len,is_empty,first,last,rev,items) are read without parentheses (xs.len, notxs.len()).- Reason: One spelling per idea. Calling a built-in getter with empty
()now failscpl check(E0306with fix-it) and triggersL0206(getter_parens) incpl fix. Removed the temporary zero-arg compatibility arm and the specialrev()arm incpl-check. - Reverse: Restore the zero-arg
Getcompatibility incrates/cpl-check/src/check/call.rsand removeL0206fromcrates/cpl-lint.
- Reason: One spelling per idea. Calling a built-in getter with empty
- Comprehension/generator/loop filters use
ifonly; power uses**only; multitest uses@!multitestonly.- Reason: One spelling per idea. Removed
wherefilter guards and--- multitest ---/--- with multitest() ---wrap lines fromcpl-syntax(E0503with machine-applicable fixes applied bycpl fix), movedMod<P>.pow/Mat<T>.powontoimpl Powwith.pow(...)rejected incpl-checkand codemodded byL0205(pow_method), and kept^strictly as bitwise xor. - Reverse: Re-enable the removed parser branches in
crates/cpl-syntax, restore.powonMod<P>/Mat<T>, and dropL0205.
- Reason: One spelling per idea. Removed
- Position
p.back(k)/p.ahead(k) -> ?D,Range<T>.drop(k)/.take(k) -> Range<T>, and enumis/if letvariant patterns (phase is Seeking,Split(base)).- Reason: Accepted from dream rewrites (
cf2150get al.).ahead(k)/back(k)lower viaBuiltin::PosOffsetbesideprev/next;Range<T>.drop(k)/.take(k)clampkto[0, max(0, hi - lo)]without overflow;Cond::Letincpl-irdispatchesPatternKind::VariantonTy::Enumthroughself.pattern(IsVariant+Payload) sophase is Seekingand payloadmatchagree in interpreter and C++17. - Reverse: Remove the
ahead/back/drop/takearms incrates/cpl-check/src/check/expr.rsandcrates/cpl-ir/src/lower/call.rs, and revertcond_letincrates/cpl-ir/src/lower/stmt.rs.
- Reason: Accepted from dream rewrites (