todo msg
vs todo as msg
#3475
sobolevn
started this conversation in
Ideas & suggestions
Replies: 1 comment 3 replies
-
Gleam is not a whitespace sensitive language so fn testfn() {
todo
"msg"
} |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently you can write:
It will produce:
Error: This has not yet been implemented
And you can write:
Which will produce
Error: msg
as expected.It parses as:
So, just two expressions: one after another.
The same happens with
panic
.It looks like this might be a common place for errors.
That's why I propose to discuss:
todo
near the next meaningful expression?If we decide to make this an error, I have a PR ready :)
Beta Was this translation helpful? Give feedback.
All reactions