ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
1. I've seen various references to a language called C# recently. I assume this is some new derivative of C or C++. For what reason has it been introduced? Is it worth learning?
2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?
1. I've seen various references to a language called C# recently. I assume this is some new derivative of C or C++. For what reason has it been introduced? Is it worth learning?
It started as Microsofts language to replace visual basic and it is a C based language with garbage collection, GUI build in and such other things. If you deem it worthy of learning then you would more than likely be using Mono which is the nix port of C#, as to if it is worth learning. It is more productive a language to use as opposed to C or C++ but you would have to evaluate its worth yourself. In some industries it is the main language for tools yet in many more it is not.
Quote:
2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?
THanks.
The C language is currently having a new standard drafted, even after it has been released it may take a few years to have the ANSI stamp (Do you know what ANSI is an acronym for?). In my opinion yes C will still be with us in that time frame.
I'm just about to start revising my rusty old C and thought I'd better check first if times had moved on too much. I don't need OOP and yes I do know what ANSI stands for. I'm most comfortable with the old K&R standard. I can therefore happily ignore C#, C++ and Java
I'm just about to start revising my rusty old C and thought I'd better check first if times had moved on too much. I don't need OOP and yes I do know what ANSI stands for. I'm most comfortable with the old K&R standard. I can therefore happily ignore C#, C++ and Java
THanks again.
ANSI is American National Standards Institute.
And it will be your gravest mistake to stick to K&R style - better use C89 == ANSI C and C99.
- a useful concept to know; implemented in a vast variety of languages - not necessarily using the 'try', 'catch' keywords. And not specifically OOP related.
I should've emphasized how much I ignore Java.
Also, I know that try and catch are used in C++, but I've never seen them used anywhere else, personally. I thought they might be unique to C++, at least the specific words.
2. Is ANSI C (as opposed to C++) withering on the vine? I mean, will it still be around in 10 or 20 years time?
I think it will as it's the most universal language (in my humble opinion). It's available for nearly every platform that you can think of, from microcontrollers like the Microchip PIC family with something like 1k code memory, 64 bytes data memory and a few bytes stack space to PCs to system with terabytes of memory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.