Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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)



Yick, your reaction is understandable. But know that the following is far more typical:

using System.Text.RegularExpressions;

...

if (Regex.IsMatch(s, sPattern, RegexOptions.IgnoreCase))...


Oh 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#.




Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: