Enforce a resonable style for TypeParameters
Currently it is possible to use arbitrary strings of any length to define a TypeParameter. This can lead to confusions with actual type names.
So this is allowed, but should be dicouraged?
class Foo<RandomGenericTypeParameter> : Object {
RandomGenericTypeParameter _r;
public Foo (RandomGenericTypeParameter r) {
_r = r;
}
public RandomGenericTypeParameter get_foo () {
return _r;
}
}
Usually this should look like this by using a single capital letter.
class Foo<G> : Object {
G _r;
public Foo (G r) {
_r = r;
}
public G get_foo () {
return _r;
}
}
What restrictions would be reasonable?