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

Add a small section on structs #11

Open
richardanaya opened this issue Apr 14, 2019 · 4 comments
Open

Add a small section on structs #11

richardanaya opened this issue Apr 14, 2019 · 4 comments

Comments

@richardanaya
Copy link

I think structs could very simply be described to some degree in the basics section

@narimiran
Copy link
Owner

I've thought about adding user-defined types, including objects/structs, but in the end I decided against it.
This would make the tutorial quite longer and less beginner-friendly, as it would have to include lots of detailed explanations, including the differences between object and ref object, which in turn gets us in explanations about pointers, ...

My conclusion was that this, among some other more advanced things, belongs to "Nim not-so-basics", which would be a separate tutorial. I haven't had the time to work on it, but who knows what will future bring :)

@Skaruts
Copy link

Skaruts commented Jul 14, 2019

This would make the tutorial quite longer and less beginner-friendly

Well, you could make a separate second part to it, for intermediate topics. If you're inclined to keep doing tutorials. (And even a third part for advanced stuff.)

I was gonna suggest a small section explaining funcs and methods and when (and if ever) to use them (I'm trying to understand that now myself -- because the official tutorial is too technical and also doesn't explain what dynamic dispatch is).

@narimiran
Copy link
Owner

you could make a separate second part to it, for intermediate topics

As I already said in the above reply:

... this, among some other more advanced things, belongs to "Nim not-so-basics", which would be a separate tutorial. I haven't had the time to work on it, but who knows what will future bring :)


I was gonna suggest a small section explaining funcs and methods and when (and if ever) to use them (I'm trying to understand that now myself -- because the official tutorial is too technical and also doesn't explain what dynamic dispatch is).

This also belongs for some intermediate tutorial, for which I still don't have the time to write, sorry.

@Skaruts
Copy link

Skaruts commented Jul 15, 2019

As I already said in the above reply:

I overlooked it. Sorry.

Alright then. Thanks anyway.
You did a great job with the existing one btw. :)

Cheers.

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

3 participants