Phoenix Himself
Phoenix Himself
The `[Text?]?` makes no sense as of right now. Let's later later add parentheses syntax so that it can parse this case: ``` fun foo(): (Text | Num)? {} ```...
One idea is that we could move the `?` to the function name: ``` fun foo?(): Text ```
The reason why I never introduces `const` is because `sh` does not support it. So for instance on `ash` it fails:
When we start to support `sh` - we should compile it to the regular variable instead (but still never let reassign the variable in the script)
In order to resolve this discussion I've created the following poll: https://github.com/amber-lang/amber/discussions/493
I think that we eventually will support `sh`. I just wanted to settle down how are we going to solve this problem holistically (including `sh` even if we do not...
I think that we'll have to write a guideline on writing error messages. But that's not a hurry. Let's merge the feature
@KrosFire Do you mean some kind of `features.txt` so that we can keep it as a checklist for all of the features that Amber currently has?
@gbourant could you provide tests for this example?
@gbourant sure thing. Take your time