Skip to content

version.one.zero.one

Compare
Choose a tag to compare
@TodePond TodePond released this 01 Feb 11:45
· 389 commits to main since this release
a989816

Sup berdies, what's cookin? πŸ€™

Check out the latest DreamBerd release below πŸ‘‡
And remember to smash that Star button and click Watch to get all the latest updates πŸ””

Regular Expressions (thanks to @Pomierski)

You can now use the regular expression type to narrow string values.

const const email: RegExp<(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])> = "[email protected]"!

To avoid confusion, you can use any spelling that you want, such as 'Regex' or 'RegularExpression'.
For reference, all supported regular expressions match the regular expression /Reg(ular)?[eE]xp?(ression)?/.

Naming (thanks to @karolstawowski and @OsaidAlhomedy)

Variables and constants can now be named with any Unicode character or string.

const const firstAlphabetLetter = 'A'!
var const πŸ‘ = True!
var var 1️⃣ = 1! 

This includes numbers, and other language constructs.

const const 5 = 4!
print(2 + 2 === 5)! //true