Skip to content

object definition syntax change #106

@vprimachenko

Description

@vprimachenko

now we use

@type myFoo {}

i propose we switch to

myFoo = @type {}

My arguments are:

  1. name definition per assignment is common in other languages as PHP($foo = ...), Javascript(var foo = function(){} pretty similar neh?), etc
  2. searchable without a regex enabled find, which is advanced feature (notepad++, browsers CTRLF don't have it) = @ vs current @[::alpha::]+ =
  3. solves a possible conflict with property stacks(its how i call that background[2] stuff), so prop[foo] : @type bar {}; cant happen (saves us a console warning + priority decision)

Contra:

  1. new syntax is harder to tell apart from a valid selector (implimentation detail)
  • sure but the parser is doing a Sisyphus level heavy-lifting already, and new syntax is doable
  • add yours here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions