Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Why xtend does not support the array format of a parameter
Why xtend does not support the array format of a parameter [message #1644971] Mon, 02 March 2015 09:07 Go to next message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 57
Registered: December 2010
Member
Hi,

Why xtend does not support the array format below:

def static void main(String args[]){
...
}


Thanks.

Re: Why xtend does not support the array format of a parameter [message #1645043 is a reply to message #1644971] Mon, 02 March 2015 09:50 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
i cannot answer the question but i have an opinion on that:
it is ugly c style and it was an error to support this in java in the first place. i think it is 1000 clearer if you separate parameter type and name and do not mix them up.


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Why xtend does not support the array format of a parameter [message #1645089 is a reply to message #1645043] Mon, 02 March 2015 10:22 Go to previous message
Jingang Zhou is currently offline Jingang ZhouFriend
Messages: 57
Registered: December 2010
Member
Christian Dietrich wrote on Mon, 02 March 2015 04:50
i cannot answer the question but i have an opinion on that:
it is ugly c style and it was an error to support this in java in the first place. i think it is 1000 clearer if you separate parameter type and name and do not mix them up.


Yes, it makes sense....
Previous Topic:problems when running mwe2 with Xbase 2.8
Next Topic:How to use Xtext internal.Stopwatch in measuring performance
Goto Forum:
  


Current Time: Fri Apr 19 22:38:46 GMT 2024

Powered by FUDForum. Page generated in 0.03071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top