Syntax for arrays?
I'm a little confuzzled on what my syntax for my language should be. Mainly when it comes to arrays.
I don't know if I want predefined functions, or built in syntax. Like this:
The built in syntax definitely looks shorter, but it doesn't really look clean when you're working with an r-value array:
I personally prefer the built in functions for r-value arrays, but the built in syntax for variables.
So which one should I chose? I can't do both
@MocaCDeveloper Nope, they'll all be inferred automatically.
Variables use the
And functions use the
It's going to be hard to implement type checking for function parameters at compile time, but I think that's doable (I think)
Edit: Oh whoops forgot, there's no semicolons