Darklang released its ninth version at the end of January.
Darklang is a programming language (with built-in infrastructure) for “deployless” deployment. Strictly speaking, it’s a mix of language, editor, and infrastructure, primarily for building backend web services.
The original intention of Darklang is to break the explosion of tool sets and make it easier to deploy code to the production environment: programmers only need to write code, and the code will be put into production directly. To put it simply, Darklang can write code directly in the ide, and Darklang’s infrastructure will help you compile and deploy, version management, AB testing, and configure cloud environments, such as load balancing, disaster recovery, expansion and contraction, and service Discovery, etc., let you go from writing code to production in less than 1 minute.
This new version brings the following major changes:
Changes to && and ||
This version has new &&
and ||
operator, Darklang previously supported ||
and &&
Using a function means that these two expressions are always evaluated.
||
and &&
Old uses of function calls still work as before (copy-paste code, call existing functions, etc.), but are now marked as deprecated.be usable convert-to-short-circuiting
Built-in commands to automatically convert old versions to new ones.
||
and &&
New usages of will default to using the short-circuit version (short-circuiting versions).If you prefer an older version, you can directly call Bool::and
and Bool::or
.
Character-functions Character functions
Darklang has some character functionality built in, and version 9 began to expand it (a “character” in Darklang is a single screen-visible character”), adding functionality, including:
Char::isUppercase_v0
Char::isLowercase_v0
Char::toUppercase_v1
Char::toLowercase_v1
Char::isDigit_v0
Char::isASCII_v0
Char::isASCIILetter_v0
Also added in function parameters and return types adding Char
type of function.
Other user-facing changes
Use a new font (Source Sans Pro) where a monospaced font is not appropriate, and in the future the new font will become the new default for the Dark language.
alsoalso added List::partition_v0
extending experimental support for tuples.
internal changes
- Added use of the browser API’s ReScript library on the client side, and added use of Tailwind.
- merged in the backend
backend
andfsharp-backend
directory, moving the traces out of the database and into cloud storage. - Removed old internals and refactored
match
mode, for the upcominglet
pattern to make room. - Also added better serialization checks to prevent deployments where user code cannot be read
Update announcement: https://blog.darklang.com/darklang-release-9/
#Darklang #releases #version #News Fast Delivery