You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the spirit of being beginner friendly: most programmers I know are used to concatenating two strings with +. Roc doesn't need this, but: it would be nice to suggest using Str.concat in the error message to reduce frustration for programmers coming from other languages.
The current output in the installed linux x86-64 binary (nightly from 2024/04/19) is this: (is the crash message intentional?)
» "Hi "+"There"ThisRoc code crashed with: "Hit an erroneous type when creating a layout for `4.IdentId(19)`"
── TYPEMISMATCH ───────────────────────────────────────────────────────────────
This 1st argument to + has an unexpected type:
6│ "Hi "+"There"^^^^^The argument is a string of type:
StrBut+ needs its 1st argument to be:
Num a
I'd suggest appending a line like Hint: Strings in Roc can be concatenated using Str.concat
(Please tell me if this is not a good contribution)
The text was updated successfully, but these errors were encountered:
In the spirit of being beginner friendly: most programmers I know are used to concatenating two strings with
+
. Roc doesn't need this, but: it would be nice to suggest usingStr.concat
in the error message to reduce frustration for programmers coming from other languages.The current output in the installed linux x86-64 binary (nightly from 2024/04/19) is this: (is the crash message intentional?)
I'd suggest appending a line like
Hint: Strings in Roc can be concatenated using Str.concat
(Please tell me if this is not a good contribution)
The text was updated successfully, but these errors were encountered: