Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [xtext-dev] generated CA methods name collision

On Jan 23, 2009, at 11:22 AM, michael clay wrote:

to keep the 'code noise-ratio' in the generated code as low as
possible low i would only generate separator chars for this special
cases (think 80/20 or 'When common things are easy and rare things are
possible' )

Think of a case, where you've overwritten such methods and add a new type/feature later on, which causes the generator to add _ to existing (already overwritten) methods.
Such conditions make things complicated and surprise users.
In addition, I don't think that 'completeFoo_bar' is noisier than 'completeFoobar'.
IMHO it is even more readable.


@Sven,Jan: which separator should i use? '_','$' or another one?

I prefer '_'.

Cheers,
Sven


Back to the top