Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

ditch braces for blocks #20

Closed
tj opened this Issue · 0 comments

1 participant

@tj
Owner
tj commented
def sub(a:vec_t, b:vec_t) {
  ret vec_t:{
    x: a x - b x
    y: a y - b y
  }
}

vs

def sub(a:vec_t, b:vec_t)
  ret vec_t:{
    x: a x - b x
    y: a y - b y
  }
end

I like braces better in general however if {} are used for anything else, hashes, structs etc it's more noise

@tj tj closed this issue from a commit
@tj tj remove braces. Closes #20
nicer to look at, nicer to write, less ambiguity with hashes etc
f6e6754
@tj tj closed this in f6e6754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.