Skip to content

Instantly share code, notes, and snippets.

@elight
Last active August 29, 2015 13:58
Show Gist options
  • Select an option

  • Save elight/10060434 to your computer and use it in GitHub Desktop.

Select an option

Save elight/10060434 to your computer and use it in GitHub Desktop.
// illegal
grid := [][]int{
{1, 0, 1},
{0, 1, 0},
{1, 0, 1}
}
// legal
grid := [][]int{
{1, 0, 1},
{0, 1, 0},
{1, 0, 1}}
// whitespace
// shouldn't
// matter
@corasaurus-hex

Copy link
Copy Markdown
// also legal
grid := [][]int{
    {1, 0, 1},
    {0, 1, 0},
    {1, 0, 1},
}

@elight

elight commented Apr 7, 2014

Copy link
Copy Markdown
Author

O rly

@tundal45

tundal45 commented Apr 7, 2014

Copy link
Copy Markdown

@elight Thank you for actually using intention revealing variable names rather than the one character counterparts. It's unfortunate that much of documentation that I see has a plethora of one character variable names.

@avdi

avdi commented Apr 7, 2014

Copy link
Copy Markdown

Very lispy.

@elight

elight commented Apr 7, 2014

Copy link
Copy Markdown
Author

@nate: I find your use of a significant-yet-appearing-superfluous comma disturbing–especially because it works!

@mstahl

mstahl commented Apr 7, 2014

Copy link
Copy Markdown

I don't even...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment