Cosmos: Why are a lot of the data structures written in a C style format for C++?

Created on 8 Oct 2017  路  3Comments  路  Source: OpenGenus/cosmos

When I look in the data structures folder, other than a few of them (such as B tree), I find they have a sort of C style interface for C++ files. I mean, if using C++, it would probably be better to use an object oriented style interface so it makes sense with C++. The C style interface is weird for C++ developers, and doesn't make sense for the language. Is someone willing to rewrite some of the data structures so that they are object oriented? I mean, I could do a _few_ of them, but there should be a rule that C++ data structures are made in an object oriented way.

Most helpful comment

Just a few so far. I'm still looking.

All 3 comments

You are right 馃憤

This indicates that our contributor base who have contributed C++ codes are more accustomed to C style of coding. Imposing a particular coding style is certainly on our roadmap and will come to reality in the near future. Our first objective is to keep Cosmos contributor and user friendly, so, it has been postponed to a later date.

At the same time, it is critical to ensure the content quality of Cosmos 馃憤

Can you link me to a few examples? I am willing to write them up in CPP style.

Cheers!

Just a few so far. I'm still looking.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

skywalker212 picture skywalker212  路  3Comments

ruchirchauhan picture ruchirchauhan  路  4Comments

ms10398 picture ms10398  路  4Comments

ivanrein picture ivanrein  路  4Comments

Josh5231 picture Josh5231  路  4Comments