As I work on developing a framework that accommodates both C# and TypeScript, I am faced with an interesting dilemma.
Take, for instance, the Validator class in C#:
class Validator
{
public bool Validate(string value)
{
return someCondition;
}
}
In TypeScript, according to the coding guidelines, I should use camelCase for functions. So, the equivalent code would be:
class Validator {
public validate(value: string): boolean {
return someCondition;
}
}
The question remains - should I mold each aspect of the framework to align with the specific coding guidelines of each language, or is it possible to overlook this and create a cohesive cross-language framework?