Comment

Comment by jryan49

Is it just me or is

  .where(p -> p.getCategory == 2 || p.getCategory == 5 && isProductUnderDiscount(p))
and

  if (product.getCategory() == 2 || product.getCategory() == 5) {
			boolean yes = isProductUnderDiscount(product); 
not functionally equivalent due to && precedence?
parent jryan49 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton