This repository has been archived by the owner on Feb 16, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Classes
Lucius Lamparter edited this page Mar 9, 2023
·
1 revision
Classes are a way of making Flux a tidy programming language and is one of the ways it differs from Python and makes it object-oriented.
Foundation is Flux's class library.
Classes are built in an orderly way. Here is a diagram that explains it:
Organisation | . | Package name | . | Module | . | Submodule | . | Etcetera |
---|---|---|---|---|---|---|---|---|
Riverside |
. | Esmerelda |
. | Core |
. | Calculation |
. | Difference(a, b) |
System |
. | Console |
. | WriteLine("cats are better than dogs") |
. | N/A | . | N/A |
Obviously, classes don't necessarily need to be executable functions, they can also be variables. E.g.: System.Console.Enabled
will return a boolean value.
Still looking for more? Give us a message by creating a feature request on the Issues tab.