4,494
edits
m (→Description) |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 30: | Line 30: | ||
* empty round parentheses: <source lang=apl inline>()</source> | * empty round parentheses: <source lang=apl inline>()</source> | ||
where ''broken'' means interrupted by one or more <source lang=apl inline>⋄</source> or line breaks (outside of [[dfn]]s). | where ''broken'' means interrupted by one or more [[diamond]]s (<source lang=apl inline>⋄</source>) or line breaks (outside of [[dfn]]s). | ||
* A ''broken'' round parenthesis creates a [[vector]] | * A ''broken'' round parenthesis creates a [[namespace]] if every diamond/line break-separated statement is a ''name-value pair''. | ||
* A ''broken'' square bracket creates a an [[array]] | * A ''broken'' round parenthesis creates a [[vector]] if every diamond/line break-separated statement is a value expression. In that case, every such statement forms an [[element]] in the resulting vector. | ||
* A ''broken'' square bracket creates a an [[array]] where every diamond/line break-separated statement forms a [[major cell]] in the resulting array. | |||
* <source lang=apl inline>()</source> is equivalent to <source lang=apl inline>(⎕NS 0⍴⊂'')</source> | * <source lang=apl inline>()</source> is equivalent to <source lang=apl inline>(⎕NS 0⍴⊂'')</source> | ||
* A ''name-value pair'' consist of a valid APL identifier, followed by a <source lang=apl inline>:</source> and a value expression. | |||
=== Formal syntax === | === Formal syntax === | ||
Line 90: | Line 92: | ||
# Visual attractiveness | # Visual attractiveness | ||
# Intuitive syntax | # Intuitive syntax | ||
# As little syntactic sugar as possible | # As little [[wikipedia:syntactic sugar|syntactic sugar]] as possible | ||
=== Glyphs === | === Glyphs === |