Skip to content

LOLCODE spec: MAEK: variable or expression, and does the expression form mutate? #156

Open

Description

@Sir-NoChill

Found while marking the LOLCODE assignment (Fall 2026, 36 submissions). The quoted text is from lolcode/ and info/ on master.

spec/variables.rst calls it "the binary MAEK operator" applied to "an expression's value", but the syntax is MAEK <variable> [A] <type>. The bare statement MAEK guess A NUMBR appears only in the guessing-game example in index.rst, not in the Casting section, which lists only <variable> R MAEK <variable> [A] <type>. Students split three ways: bare form unsupported or a no-op, expression form re-typing the variable, MAEK not usable inside expressions.

Proposed fix: give the three forms explicitly (expression, in-place statement, cast-assignment) and say that only the statement forms change the variable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions