Oytunistrator
App/Web/Game/OS Developer
Hello! I am developing on Web, Application, Game and Operating System. If there is something you want me to help with, you can contact. I would be happy with that.
O Language: Scopes or Classes
The scope structure is similar to class structures. All the functions defined in scope form subfunctions of a scope. In this way you can clustering by writing functions in the main scope.
Scope definition:
scope example { def hello = fn(x){ return "Hello "+x }; def subone = fn(x){ return x+1 }; }
Scope call:
def hello = example::hello("Oytun") def number = example::subone(1) show(hello) show(number)
Scope output:
Hello Oytun 2
Great now you are ready to write a simple web socket.