4 ms·
I was curious about C#, started reading about it and I stopped precisely at the point when I saw this piece of code in their tutorial: if (System.Text.RegularE
by mojuba 19y ago
I was curious about C#, started reading about it and I stopped precisely at the point when I saw this piece of code in their tutorial:
if (System.Text.RegularExpressions.Regex.IsMatch(s, sPattern,
System.Text.RegularExpressions.RegexOptions.IgnoreCase))
...
So Miguel de Icaza wants to bring this mess to UNIX? This is ridiculous and so un-UNIX.
(Though GNOME, too, was probably one of the messiest GNU projects so far)
- dk 19y agoYick, your reaction is understandable. But know that the following is far more typical: using System.Text.RegularExpressions; ... if (Regex.IsMatch(s, sPattern, RegexOptions.IgnoreCase))...
- mojuba 19y agoOh yes, I know ;) but I wouldn't say it is much less verbose than the first example in terms of the number of words used, and besides, it's Microsoft's tutorial, i.e. it's how they teach novice programmers to program in C#.