Readability: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→IBM) |
||
Line 11: | Line 11: | ||
This was a common technique before [[Left]] was added to the language: | This was a common technique before [[Left]] was added to the language: | ||
:<source lang=apl inline>X←'line1' ⊣ Y←'line2'</source> | :<source lang=apl inline>X←'line1' ⊣ Y←'line2'</source> | ||
The Diamond [[statement separator]] (<source lang=apl inline>⋄</source>) provides an alternative means of inlining multiple statements. | The Diamond [[statement separator]] (<source lang=apl inline>⋄</source>) provides an alternative means of inlining multiple statements: | ||
:<source lang=apl inline>Y←'line2' ⋄ X←'line1'</source> | |||
Note that in all these cases, <source lang=apl inline>Y</source> is assigned first. | |||
=== Morten Kromberg === | === Morten Kromberg === | ||
[[Morten Kromberg]] asked one of his colleagues to “Please avoid this kind of pornography:” | [[Morten Kromberg]] asked one of his colleagues to “Please avoid this kind of pornography:” |