Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

struct implementation #28

Open
shamin1998 opened this issue Dec 6, 2018 · 3 comments
Open

struct implementation #28

shamin1998 opened this issue Dec 6, 2018 · 3 comments

Comments

@shamin1998
Copy link

Is your feature request related to a problem? Please describe.
Structures are a very useful tool in coding, and lack of support for it would be a huge handicap for users.

Describe the solution you'd like
We could come up with a simple structure pseudocode syntax, using which users could define their own structures, members and all.

Additional context
This could also easily be used for typedef implementation, another huge tool for users.

@rahulkumaran
Copy link
Owner

But will people actually define a struct in pseudocode? @shamin1998

@shamin1998
Copy link
Author

shamin1998 commented Dec 7, 2018

I think majority of algorithms are implemented using structures only, even though it's not explicitly stated so.
For example, BST implementation in Cormen, uses T.root, x.left, etc.

I don't see how one would be able to apply these pseudocodes without structures. And these are important algorithms, I think sudocode should include support for these in the initial stages.

Soon the program could become so userfriendly that one could just write:
BST T
to define a BST, such as in STL

@rahulkumaran
Copy link
Owner

Right! Cool. Makes sense. You can start working on this if you wish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants