enso/docs/syntax
Paweł Grabarz b7a8909818
Vue dependency update, better selection performance, visible quotes in text inputs (#9204)
- Improved performance by batching simulatenous node edits, including metadata updates when dragging many selected nodes together.
- Updated Vue to new version, allowing us to use `defineModel`.
- Fixed #9161
- Unified all handling of auto-blur by making `useAutoBlur` cheap to register - all logic goes through a single window event handler.
- Combined all `ResizeObserver`s into one.
- Fixed the behaviour of repeated toast messages. Now only the latest compilation status is visible at any given time, and the errors disappear once compilation passes.
- Actually fixed broken interaction of node and visualization widths. There no longer is a style feedback loop and the visible node backdrop width no longer jumps or randomly fails to update.
2024-03-06 15:34:07 +00:00
..
assignment.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
comments.md Make Random.Seed private. Remove unused TEXT_ONLY (#8783) 2024-01-17 17:15:51 +00:00
encoding.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
function-arguments.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
functions.md Autoscoped constructors (#9190) 2024-03-04 11:41:02 +00:00
imports.md Properly expose stacktraces and related data to user code (#3271) 2022-02-16 10:36:19 +03:00
layout.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
literals.md Vue dependency update, better selection performance, visible quotes in text inputs (#9204) 2024-03-06 15:34:07 +00:00
macros.md Complete the implementation of the Enso lexer (#1177) 2020-10-30 14:06:24 +00:00
naming.md Update 'naming' docs (#3858) 2022-11-24 12:55:42 +00:00
projections.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
README.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
top-level.md Add a markdown style guide (#1022) 2020-07-21 13:59:40 +01:00
types.md Use .. to identify autoscoped constructors (#9285) 2024-03-06 10:28:15 +01:00

layout title category tags order
section-summary Enso's Syntax syntax
syntax
readme
0

Enso's Syntax

When working with a programming language, the syntax is the first thing that a user encounters. This makes it utterly integral to how users experience the language, and, in the case of Enso, the tool as a whole.

Enso is a truly novel programming language in that it doesn't have one syntax, but instead has two. These syntaxes are dual: visual and textual. Both are first-class, and are truly equivalent ways to represent and manipulate the program. To that end, the design of the language's syntax requires careful consideration, and this document attempts to explain both the what, of Enso's syntax, but also the why.

Furthermore, Enso is novel in the fact that it does not enforce any artificial restriction between the syntaxes of its type and value levels: they are one and the same. This enables a staggering level of uniformity when programming in the language, allowing arbitrary computations on types, because in a dependently-typed world, they are just values.

The various components of Enso's syntax are described below: