Akuli / jou

Yet another programming language
MIT License
11 stars 4 forks source link

&foo[0] is annoying #329

Closed Akuli closed 1 year ago

Akuli commented 1 year ago

If I have an array foo: byte[100], I need to do &foo[0] to pass it to a function like strcmp(), strcpy(), snprintf(), printf(), ...

This means that Jou code contains a LOT of &foo[0] compared to C. I don't like it. It would be better if the array automatically converted into a pointer to its first argument, just like in C.