Skip to content

Dosato v0.5.1

Compare
Choose a tag to compare
@Robotnik08 Robotnik08 released this 14 Nov 10:57
· 133 commits to main since this release
cbe3529

Dosato Version 0.5.1

New Features

  • Classes have been added to the language. Classes are a way to group data and functions together. Here is an example of a class in Dosato:
class Person (name, age) {
    set self->name = name
    set self->age = age

    implement greet () {
        do sayln(`Hello, my name is {self->name}. I am {self->age} years old`)
    }
}

More information on classes can be found in the documentation.

Fixed Bugs

  • Template strings did not support escape sequences. This has been fixed.
  • Using return without value outside of a function would cause a segmentation fault. This has been fixed.