Skip to main content
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Source Link

Skip semicolons!

I'll use this answerthis answer to illustrate the point.

The original code was:

function f(x);if~movefile('f.m',x);disp("+-+\n| |\n+-+");end

After removing semicolons, it could be reduced to the following, saving three bytes:

function f(x)if~movefile('f.m',x)disp("+-+\n| |\n+-+")end

This can be used quite a few places, and stuff you don't even try because it looks like a syntax error often works.

Skip semicolons!

I'll use this answer to illustrate the point.

The original code was:

function f(x);if~movefile('f.m',x);disp("+-+\n| |\n+-+");end

After removing semicolons, it could be reduced to the following, saving three bytes:

function f(x)if~movefile('f.m',x)disp("+-+\n| |\n+-+")end

This can be used quite a few places, and stuff you don't even try because it looks like a syntax error often works.

Skip semicolons!

I'll use this answer to illustrate the point.

The original code was:

function f(x);if~movefile('f.m',x);disp("+-+\n| |\n+-+");end

After removing semicolons, it could be reduced to the following, saving three bytes:

function f(x)if~movefile('f.m',x)disp("+-+\n| |\n+-+")end

This can be used quite a few places, and stuff you don't even try because it looks like a syntax error often works.

Source Link
Stewie Griffin
  • 46.5k
  • 13
  • 132
  • 295

Skip semicolons!

I'll use this answer to illustrate the point.

The original code was:

function f(x);if~movefile('f.m',x);disp("+-+\n| |\n+-+");end

After removing semicolons, it could be reduced to the following, saving three bytes:

function f(x)if~movefile('f.m',x)disp("+-+\n| |\n+-+")end

This can be used quite a few places, and stuff you don't even try because it looks like a syntax error often works.