Languages With With

From NYC Resistor Wiki
Jump to: navigation, search

Not a typo. Languages with a with construct.

with (object) {
    property = "value";
}

new(ptoNode);

...
with ptoNode^ do
begin
  a := 10;
  b := 'A';
  c := nil
end;
...

with open("x.txt") as f:
   data = f.read()
   do something with data

if you make out here
i will cut your lips and tongue from your head
with a linoleum knife

With testObject
   .Height = 100
   .Text = "Hello, World"
   .ForeColor = System.Drawing.Color.Green
   .Font = New System.Drawing.Font(.Font, _
       System.Drawing.FontStyle.Bold)
End With