Skip to content

Early Ideas

Cameron Billingham edited this page Feb 21, 2016 · 1 revision

Ideas for Theme

  • Pokémon script

    • examples:
      • (function), I choose you
      • (function) use (method)
  • Sunior Script

    • Do a language how we wish to do it (implement the require feature and more)

Features for Language

For loop

while loop

  • Instead of using "while use "as"
  • e.g. as x < 4 do something

variable assignment

  • x = 4

Function declaration

if-statement

Exceptions

Assertions

Built in types

  • list/Array

Custom objects / Classes

Awesome features we want to include

null?

optional assignment operator

  • list comprehensions
    • e.g. - [x*x for x in list when x%2 is 0]
  • arrows for functions
    • e.g. - square = (x) -> x * x
  • python-esque blocks with colon (Cameron)
  • array slicing
    • list[0:2]
  • "require" statement for argument checking.
    • require args.length = 1 (would throw illegal argument exception if false)

Things we want to avoid

  • curly braces (Cameron)
  • semicolons
  • parentheses?