Darklang Release 5
September 1, 2022
Darklang Release 5 includes support for Tuples, a revamped settings panel with new settings for contributors, and significant internal reworks.
See the blog post for further discussion.
Major feature: experimental Tuple support
- Tuple expressions can be created by entering
(in a blank expression
- Tuples may be deconstructed in
- New standard library functions have been added to work with Tuples:
- Tuple deconstruction (
let (lat long) = (39.9526, 75.1652)) is not yet available, so creating tuples of size greater than 3 is not recommended at this time, unless you plan to use
matchexpressions to deconstruct the values.
- Tuples are only available after opting in via Settings (see next section)
- More details on using tuples can be found in Language Details.
Major feature: Contributor settings
A new Contributor Settings page has been added, allowing devs to look under the hood and use the same tools that employees are using to develop Darklang.
We have also made it possible to enable the in-Editor debugger (note: this is useful for the debugging the Darklang editor, not for debugging Darklang programs) (#4343)
Finally, in-progress features can now be enabled for devs, starting with Tuples (#4429)
- Allow floats where the whole number part is empty (#4371)
Allow pressing enter in more expression bodies (#4438)
Fixed Undo functionality, which was briefly broken (#4392)
Fixed display of Error rail, which was briefly broken (#4373)
Prevent Analysis errors due to using Tasks incorrectly (#4436)
In-progress features -
HttpClient and HTTP framework
HttpClient and HTTP framework are quite limited, only supporting
text request/response bodies, among many other problems. They also lack the
flexibility to control and compose their behavior.