RFC: Toy Version 0.6.0 Specification #4
Replies: 3 comments 3 replies
-
I have a few gripes with the syntax along with other things, so I would like to suggest a few changes :) First off, I'm kind of lost on how the language should be used to create structured data types (like objects in JavaScript or tables in Lua). I guess Also, I argue you should change the I'm also kinda confused if function arguments are supposed to be contained within parentheses or not. From what I've gathered, print is treated like a separate keyword that also behaves like a function and doesn't require parentheses. It would be awesome if we could also support calling user defined functions without parentheses, as that would be far more consistent and even allow for devs to create DSL languages thanks to such feature. As for syntax specific issues: I dislike the fact that the condition in One more nitpick, why That's it for the most part. I have no comments on the predefined functions, except for the utter lack of file IO. But I'm not that sure what this language is supposed to be and I'm not going to tell you how it should be used. All I'm doing is throwing my 0.02$ |
Beta Was this translation helpful? Give feedback.
-
I've tweaked the intent of |
Beta Was this translation helpful? Give feedback.
-
Proposition: Rather than having built-in types, the dot operator and slice notation can simply be syntactic sugar for function calls:
This allows for method chaining, as well as extension methods. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The current spec file now lives here.
Beta Was this translation helpful? Give feedback.
All reactions