Skip to content

Instantly share code, notes, and snippets.

@elight
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elight/10060434 to your computer and use it in GitHub Desktop.
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

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

@elight
Copy link
Author

elight commented Apr 7, 2014

O rly

@tundal45
Copy link

tundal45 commented Apr 7, 2014

@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
Copy link

avdi commented Apr 7, 2014

Very lispy.

@elight
Copy link
Author

elight commented Apr 7, 2014

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

@mstahl
Copy link

mstahl commented Apr 7, 2014

I don't even...

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