v0.9.9.9.9.9.9.9.9d
Hey there berd-heads. It's time for another DreamBerd release.
Improvement: Logo
The DreamBerd logo is now wearing timberland boots (thanks to @lijok).
Did you know?
You can click on the DreamBerd logo to easily access the examples page (thanks to @labbo-lab).
Improvement: Localisation
We now support more currencies (thanks to @notpushkin).
So please remember to use your regional currency when interpolating strings.
const const name = "world"!
print("Hello ${name}!")!
print("Hello £{name}!")!
print("Hello ¥{name}!")!
And make sure to follow your local typographical norms.
print("Hello {name}€!")!
The symbol for the Cape Verdean escudo is placed in the decimal separator position, as in 2$50.
Developers from the Republic of Cape Verde can benefit from this syntax:
const const world = {name: "world"}!
print("Hello {world$name}!")!
Documentation: Union
We now document our functions better (thanks to @spiffytech).
We would like to remind you that you can use the union
keyword to create functions, as it is made up of letters from the word function
in the correct order.
union inverse (a) => 1/a!
New: Highlighting
Syntax highlighting is now available for DreamBerd in VSCode (thanks to @Odinmylord).
To enable it, install a highlighting extension and then use the DreamBerd configration file.
This is what it looks like:
const const name = "Luke"!
print(name)! // "Luke"
Please note: The above code will only highlight correctly if you have the extension installed.
New: Reversing
You can now reverse the direction of your code.
const const message = "Hello"!
print(message)!
const const message = "world"!
reverse!
New: Asynchronous Functions
Asynchronous functions synchronise with each other. They take turns running lines of code.
async funct count() {
print(2)!
print(4)!
}
count()!
print(1)!
print(3)!
print(5)!
You can use the noop
keyword to wait for longer before taking your turn.
async func count() {
print(2)
noop!
print(5)!
}
count()!
print(1)!
print(3)!
print(4)!
Note: In the program above, the computer interprets noop
as a string and its sole purpose is to take up an extra line. You can use any string you want.
New: Contributing
We added a contributing guide so that everyone can get involved with making DreamBerd perfecter!
The most helpful way you can help is by donating to the Stonewall charity. This will help to prevent the DreamBerd creator from losing their human rights.
Developer Comment
This guide should also help to shake off some unwanted fans of the project.
New: Tech-Talk
The world's first DreamBerd tech-talk has happened.
Watch the full thing here.
New: Wallpaper
Related to that... you can now download the official DreamBerd wallpaper!
Here it is: