Skip to content

Introduce structured data types to LOLCODE #9

Description

@AlexisGoodfellow

I am in favor of the following syntax for declaring a structured data type:

DIS IS A <class_name> KINDA LIKE A <base_class_name> BUT
   IT GOT A <variable> 
   IT GOT A <variable> ITZ <value>
   IT CAN <function_name>
OKIE

Instantiation can be done with: I HAS A <instance_name> ITZ <class_name> BORN WIF <arguments>, or <instance_name> R <class_name> BORN WIF <arguments>
Accessing elements of the structure can be done with I HAS A <variable> ITZ DA <field_name> OV <instance_name>, or <variable> R DA <field_name> OV <instance_name>.

Other syntax could be used - but I would certainly like structured data types!

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions