MystPi / bella

🐶 Bella ⌁ A simple functional programming language ⌁ Written in Gleam!
MIT License
20 stars 3 forks source link

Improve Documentation #6

Open GenericProgrammer1234 opened 10 months ago

GenericProgrammer1234 commented 10 months ago

This is a WIP, I have some more to do but I have started off with the language tour. I have added a table of contents and made clearer grouping.

GenericProgrammer1234 commented 10 months ago

Also does Bella have objects or not? -- Sorry if these questions are basic, I only viewed one to two examples and read the documentation you wrote.

MystPi commented 10 months ago

No, Bella does not have objects.

I am wondering why you moved the Lists section before anything else? It was originally placed where it was so that concepts are introduced in order of usage.

GenericProgrammer1234 commented 10 months ago

Actually that was a stupid question because if it did have objects then there would be a section about it.

Because the Lists section makes sense as a sub-section of Values and since lists are super basic plus that they aren't even used much in the documentation, I think it makes sense.

GenericProgrammer1234 commented 10 months ago

Also what stops you from making a function be part of a record basically making it an object?

MystPi commented 10 months ago

Also what stops you from making a function be part of a record basically making it an object?

Nothing, however doing that would most likely be against the grain of functional programming and is not recommended.

GenericProgrammer1234 commented 10 months ago

Also what stops you from making a function be part of a record basically making it an object?

Nothing, however doing that would most likely be against the grain of functional programming and is not recommended.

Okay so technically there are objects but they aren't recommended? -- Okay got it.

MystPi commented 10 months ago

Also what stops you from making a function be part of a record basically making it an object?

Nothing, however doing that would most likely be against the grain of functional programming and is not recommended.

Okay so technically there are objects but they aren't recommended? -- Okay got it.

If that's how you define objects, then yes, records can be used like them.

MystPi commented 10 months ago

You may want to take a look at this file to see all of the available built-in functions.

GenericProgrammer1234 commented 10 months ago

Thanks!

GenericProgrammer1234 commented 10 months ago

I'll get around to completing this eventually, I am just a bit busy.