News for hackers. Stuff that matters.
Re:Background: how we got the generics we have (2020) by skocznymroczny on Thursday April 01, 2021 @08:29AM (#26659591)
The relative simplicity of the language allows it to have excellent IDE support. I can select a class name, rename it, and have it renamed in all files that use this class. And the IDE knows that this actual class is being used, not another class from another module that has the same name, and that it's not a string with the same value as the class name. With languages like C++ all you can do is grep and cry.
Re:Background: how we got the generics we have (2020) by Semaphor on Thursday April 01, 2021 @09:21AM (#26660151)
OP mentioned C#. Exactly the same is possible there.
Re:Background: how we got the generics we have (2020) by gmueckl on Thursday April 01, 2021 @09:52AM (#26660514)
Yes and no. The C# language does have conditional compilation, which is modelled after the C preprocessor. That can interfere with refactoring and limit its accuracy. The good thing is that this mechanism is rarely used in practice.
Re:Background: how we got the generics we have (2020) by shellac on Thursday April 01, 2021 @11:29AM (#26661700)
Does the LINQ expression tree stuff complicate things? I don't know how that works with respect to parsing.
Re:Background: how we got the generics we have (2020) by northwindfoo on Thursday April 01, 2021 @09:09AM (#26660006)
Visual studio has c++ symbol rename, including class names. Has had it for a while as well. Fairly reliable, though occasionally it does fail, loudly.