FANDOM


Popcorn is a programming language which uses short hand, and is a C# variant.

DifferencesEdit

  • Shorthand is put before any using clauses.
  • Use either:
    • shorthand method { <<method>> } = <<newmethod>> for methods and functions
    • shorthand var <<variable>> = <<new variable>> for variables
  • Arguments can be used by prefix a number with $args<<number>>.
  • Shorthand has all access to an object, like it was part of that class.
  • Shorthand is contained in the class pcsh.

ExampleEdit

shorthand method { Console.WriteLine($args1);} = print(string $args1);
using System;
class Hi
{
Hi()
{
pcsh.print("Hi");
}
}