RFC: Disambiguate Qualifier Syntax Semantics #53
KrisSimon
started this conversation in
Language Design
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The colon syntax
<name: qualifier>has three different meanings:<Compute> the <len: length> from <text>.<Filter> the <users: List> from <data>...<Extract> the <id> from the <event: user>.Examples from Codebase
Issue
Same syntax, three semantics. Context-dependent parsing works but hurts readability.
Proposed Solutions
Option A: Different delimiters
<result: operation>(keep current)<result :: Type>(Haskell-style)<source.field>(dot notation)Option B: Explicit keywords
<result: length>(keep)<result as Integer><event: user>(keep)Option C: Accept the overloading
Questions
Beta Was this translation helpful? Give feedback.
All reactions