Add button "Show inferred semicolons", like Scala-IDE

54 views
Skip to first unread message

Lukas Eder

unread,
Nov 11, 2012, 8:29:20 AM11/11/12
to xtend...@googlegroups.com
Hello,

Like Scala, Xtend allows to omit "obvious" semicolons. Of course, this can lead to ambiguity in some corner cases. Scala-IDE has added a button to show/hide inferred semicolons, much like Eclipse's button to show/hide whitespace:

In the attached image, the first and third import statements omit the semi-colon, whereas the second one explicitly has a semi-colon. I think, such a button would be useful for Xtend as well...

Cheers
Lukas

Sven Efftinge

unread,
Nov 11, 2012, 12:37:22 PM11/11/12
to xtend...@googlegroups.com
You could file a feature request in bugzilla (you'll find the link on the website).
Please also provide us with a typical scenario where such a feature helps you.

Thanks,
Sven

Lukas Eder

unread,
Nov 11, 2012, 1:32:21 PM11/11/12
to xtend...@googlegroups.com
OK, will do.

Thanks,
Lukas

Lukas Eder

unread,
Nov 11, 2012, 1:42:00 PM11/11/12
to xtend...@googlegroups.com
As a matter of fact, I just realised that such a feature is much more useful with Scala than with Xtend right now, as Scala allows for omitting much more than just semi-colons. I guess Scala-IDE have added this feature to help decrypting statements where lots dots and parentheses are omitted as well...

Adding it to Xtend might just be purely cosmetic...
Reply all
Reply to author
Forward
0 new messages