GetFortCharacter[]? GetFortCharacter()?

KeyserScholze is correct. It is a method, but it is also a “failable expression,” and Verse requires that failable expressions be called conditionally (usually with an IF or FOR expression) and square brackets must be used. Coincidentally, in Verse, calling arrays are also failable expressions and are called conditionally with brackets as well. Since an array might not return a value, it can fail and is allowed to fail, but in what they call a failure context. While Verse has many similarities to other programming languages, it is also unique in many ways and has many guardrails to prevent runtime errors.

4 Likes