Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplifying syntax #2

@dumblob

Description

@dumblob

I started reading some of in-Til written source code and immediately asked myself why do we need:

  1. proc p (name) { ... } instead of simpler proc p name { ... }
  2. if ($msg == "QUIT") {break} instead of simpler if $msg == "QUIT" {break}
  3. only the verbose construction of a dict set d1 [dict.create (a "alfa") (b "beta") (c "gama")] instead of providing a second "constructor" set d1 [dict.create2 a "alfa" b "beta" c "gama"]
  4. the verbose math ($x * $y) instead of math $x * $y

Looking into this further both points (1) and (2) are actually similar to "set destructuring a simplelist" (set a b c (1 2 3)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions