Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 344575 - [xtend] Name of declared dependency should be mandatory
Summary: [xtend] Name of declared dependency should be mandatory
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: RC1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-03 09:55 EDT by Sebastian Zarnekow CLA
Modified: 2017-09-19 17:28 EDT (History)
0 users

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Zarnekow CLA 2011-05-03 09:55:59 EDT
To summarize the offline discussion, we see the following advantages:

@Inject SomeType as someName 

is in conflict with the syntax for cast expressions and not in line with other places in the grammar that define named identifiables, e.g. formal parameters don't use the 'as' keyword.

It seems to be unintuitive to infer names instead of types.

Tooling can help to find good variables names (e.g. via content assist).

People are used to the fact that identifiables have to be named.
Comment 1 Sebastian Zarnekow CLA 2011-05-04 05:57:21 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:17:36 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:28:56 EDT
Closing all bugs that were set to RESOLVED before Neon.0