Add ideas for nesting identifiers readably
parent
75507fc9ee
commit
33049f864c
1 changed files with 5 additions and 1 deletions
|
|
@ -113,4 +113,8 @@ r is Angle a b is Sphere
|
|||
Angle a Sphere named b named r
|
||||
```
|
||||
|
||||
It seems like this should assign the identifier `r` to the angle between `a` and a new sphere with identifier `b`. Readability is very poor for both versions!
|
||||
It seems like this should assign the identifier `r` to the angle between `a` and a new sphere with identifier `b`. Readability is very poor for both versions! Suggestions:
|
||||
- If the language has both statements and expressions, `is` could be a statement, and thus syntactically inadmissible for nesting.
|
||||
- If the language is purely expression-based:
|
||||
- An `is` expression could return unit, making it semantically inadmissible for nesting.
|
||||
- An `is` expression could require punctuation for nesting.
|
||||
Loading…
Add table
Add a link
Reference in a new issue