dodona-edu / universal-judge

Universal judge for educational software testing
https://docs.dodona.be/en/tested
MIT License
9 stars 4 forks source link

Using `!v` for literal strings or objects as return values is not user friendly #447

Closed niknetniko closed 7 months ago

niknetniko commented 8 months ago

One of the (main) goals of the DSL was that simple things should be simple. However, as @bmesuere pointed out, requiring !v for string and object return values is not obvious behaviour, nor it is easily explainable (as booleans, numbers and lists don't need it).

Some possible solutions include:

Currently, I believe a single return key return with a new tag !ast (not 100% on the name yet) would satisfy our requirements:

Pinging @pdawyndt as the current situation was our previous conclusion.

niknetniko commented 7 months ago

We will use return: !expression "SomeClass(5, 6)".