I need to implement a few commands of Linux shell for my homework – 5 or 6 of them, including ls. Do not know much about which parameters to implement for each of commands…
I planned to use C++, but when I asked my colleague for advice what language to choose – plain C or C++, he said that interpreter was not a program in traditional meaning, it`s a functional tool, and it absolutely must be implemented in C.
My arguments on C++ is great code reuse, better separation of concerns, and in fact I do not know C very well – actually, I learned C++ and enjoyed it.
So, what is your point on this? Thanks in advance.
It is an individual assignment – I mean for every person in my group, so no collaboration supposed.
I have experience of low level programming, pointers arithmethic, void*, etc.
I need to implement a few commands of Linux shell for my homework –
Share
First: Use what you know.
There is no reason to enter uncharted waters if you can get there with a familiar route.
C++ is a very viable option in your circumstance, anyways. So, you aren’t making a mistake to just use it.
Second: Your friend is wrong. (I would use harsher words, but I’ll be nice.)
C++ and C are both compiled languages. A C++ program absolutely is a program in the traditional sense. Both C and C++ are statically typed as well.
PS:
You can still use a C++ compiler to build C programs. You can do everything available in C with C++.