Laz*_*zlo 2 programming-languages indentation
我想知道这种语法(借用C#,请注意)是否被编程语言使用,即用于包含的选项卡,没有任何"结束"指令.
class Character
static string Name;
static int Level;
static Inventory Inventory;
static double Health;
Character(string name, int level)
this.Name = name;
this.Level = level;
this.Inventory = new Inventory(this);
this.Health = 1;
void Die()
this.Health = 0;
class Inventory
Character Parent;
List<Item> Items;
Inventory(Character parent)
this.Parent = parent;
Run Code Online (Sandbox Code Playgroud)