last day (63 days later) » 

15:59
alrighty
i have created this room for wellscripted
so its serious
in The Nineteenth Byte, 1 hour ago, by PyGamer0
Wellscripted:
- fast (probably)
- easy to learn (maybe)
- object oriented
- functional
- array oriented
- compiled (or transpiled)
also i wont have loops
and i wont have separate definition for functions
so the only way to make a function is args -> body
so the language is entirely ascii
and it will be compiled to bytecode i think
ok sooo i want / to be the comment
so a / on its own will be a comment
16:14
classes:
val A = class() {
    val __new__ = x -> {
        this.x = x;
    };

    val __add__ = other ->
        A(other.x + this.x);

    val method = () ->
        print("A.method");
};

val B = class(A) {
    val method = () ->
        print("B.method");
};
 
2 hours later…
18:09
@PyGamer0 no division?
 
2 hours later…
20:25
@PyGamer0 May I suggest using algebraic data types instead? And not making classes/types first-class objects?
Given that this language will be compiled, I don't think you need to make types first-class. You could add compile-time metaprogramming instead
GADTs are really cool
Are you thinking of adding the kind of typeclasses Haskell has or maybe the kind Scala has?
If so, you probably won't need classes and inheritance
They'll kinda just complicate things if you also want to do FP
@PyGamer0 Be careful with that, what would val foo = 1 / 2 mean?
Oh jonymyster already pointed that out

  last day (63 days later) »