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

Actually, there's absolutely wrong with using + for individual expressions; it is actually the correct way of doing it (a + b + c + d compiles to String.Concat(a,b,c,d) ) - the problem is if you are doing this in a loop, where you get a lot of throwaway strings from intermediate concatenations. In a loop, you should concatenate via StringBuilder.


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

Search: