ELENA-LANG / elena-lang

ELENA is a general-purpose language with late binding. It is multi-paradigm, combining features of functional and object-oriented programming. Rich set of tools are provided to deal with message dispatching : multi-methods, message qualifying, generic message handlers, run-time interfaces
https://elena-lang.github.io/
MIT License
236 stars 26 forks source link

Setting several properties in a row #535

Open arakov opened 3 years ago

arakov commented 3 years ago

Is your feature request related to a problem? Please describe. Setting several properties in a row

Describe the solution you'd like A syntax should be extended to support inline property settings

arakov commented 3 years ago

the following advanced syntax should be supported:

A
{
    prop X;

    prop Y;
}

public program()
{
    var a := new A().set X(2).set Y(3)
}
arakov commented 3 years ago

done

arakov commented 10 months ago

It need to be retested