Hi Jamal,
thank you - so we are at 5.5 : 3.25 now.
Regarding your comment about dot or colon: in the Core dialect you can use the dot instead of the colon. But at least XIDE does not support that in thew editor, I don't know about Visual Studio.
Personally I prefer the colon because it makes it clearer where a method comes from - it is easier to read.
It seems to be a similar question as "implements" and "inherit" - X# makes a difference and the code easier to read, whereas C# is shorter, but IMHO harder to read.
Wolfgang
what is the preferred way - functions/static methods or extension methods
Moderator: wriedmann
what is the preferred way - functions/static methods or extension methods
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
what is the preferred way - functions/static methods or extension methods
Hi
i like functions, i dont like when a variable has addional features.
a varibale is a variable and finish. keep it simple.
so this -> cString := cMotherString.Substr (1,5) i dont like.
and btw i like the russian doll modell because its like mathematik first clean up the inner clips.
also in VO, all the methods of a class will be compiled and blows up the executable, even you need only one method of the class in the whole program.
Horst
i like functions, i dont like when a variable has addional features.
a varibale is a variable and finish. keep it simple.
so this -> cString := cMotherString.Substr (1,5) i dont like.
and btw i like the russian doll modell because its like mathematik first clean up the inner clips.
also in VO, all the methods of a class will be compiled and blows up the executable, even you need only one method of the class in the whole program.
Horst
what is the preferred way - functions/static methods or extension methods
Hi Horst,
Therefore I like extension methods, as they allow to use the same method name on different object or variable types.
Wolfgang
a variable can be an object - in fact in .NET everything is an object, even a string or an integer. And an object can have methods.a varibale is a variable and finish. keep it simple.
Therefore I like extension methods, as they allow to use the same method name on different object or variable types.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
what is the preferred way - functions/static methods or extension methods
also for me extension method
Fabrizio
Fabrizio