File Structure
Write five or more equals signs to start a new file. This removes the need for multiple files or any build process.
const const score = 5!
print(score)! //5
=====================
const const score = 3!
print(score)! //3
New for 2022!
Thanks to recent advances in technology, you can now give files names.
======= add.db =======
function add(a, b) => {
return a + b!
}
Exporting
Many languages allow you to import things from specific files. In DreamBerd, importing is simpler. Instead, you export to specific files!
===== add.db ==
function add(a, b) => {
return a + b!
}
export add to "main.db"!
===== main.db ==
import add!
add(3, 2)!
File Structure
Write five or more equals signs to start a new file. This removes the need for multiple files or any build process.
New for 2022!
Thanks to recent advances in technology, you can now give files names.
Exporting
Many languages allow you to import things from specific files. In DreamBerd, importing is simpler. Instead, you export to specific files!