Why is FunctionType not an IdentifiedType?

Milian Wolff mail at milianw.de
Sat Nov 16 13:56:46 UTC 2013

On Saturday 16 November 2013 14:40:42 Sven Brauch wrote:
> Hi!
> I already talked to olijg in IRC about this yesterday, but now I'd like to
> bring it up here again: Why is FunctionType not an IdentifiedType? Looking
> at the kdev-python code, this causes quite some extra complexity, so I was
> thinking about why it is like this and found no reason.
> Let me outline my understanding of this issue: An IdentifiedType is a type
> which has a declaration. The purpose is to separate types which can be
> associated with a particular declaration (e.g. classes) from types which are
> built-in or composite types (IntegralType, UnsureType), and allow
> retrieving the declaration only for types for which this makes sense.
> FunctionType is currently not an IdentifiedType, although it clearly belongs
> to a Declaration in every language I'm aware of. I think this should be
> changed. Thoughts?

Lambdas are not identified. But if you think this improves code for the rest, 
we could certainly change the default and lambdas would simply return 0 as 

Milian Wolff
mail at milianw.de

More information about the KDevelop-devel mailing list