-
Notifications
You must be signed in to change notification settings - Fork 16
Wollok v1.1 Aristoteles
Now you can combine your objects and classes declarations in the same file as your programs or tests.
Simplified test syntax, added "assert" object, for example:
object foo {
method bar = 10
}
test "foo.bar() should return 10" {
assert.equals(10, foo.bar())
}
- Each .wlk file defines an importable package
- Also you can define a package inside a file
- Allow to import packages, individual classes or named objects
More examples can be found here
Now, when you define an object you can specify which class it inherits from.
class MyClass {
method myMethod() = "1234"
}
object myObject extends MyClass {
method something() = "abc"
}
Wollok now supports a special kind of multiline comments called wollokdoc. In the same fashion as javadoc's and many other languages documentation.
There is a new static check for wrong usages of the if statement. When you use the 'if' just for evaluating into a boolean value, then the check will fail.
- Allow to define a variable or constant and remember it for future usage.
- Add history support
- Add previously launched programs to the Eclipse launch history
Support for UI internationalisation. By default wollok supports english and spanish languages. More languages could be added in the future.
// TODO: image
Almost all language validations can be configured now, either defining them from the workspace-wide preferences or overriding that for specific projects.
For each validation you can define the severity.
- New hover documentation provider shows more understandable names
- Simplify manifest resolution