GulfOfMexico icon indicating copy to clipboard operation
GulfOfMexico copied to clipboard

Multiply-divide operator /*

Open realgdman opened this issue 2 years ago • 1 comments

Like muliply-add, but more powerful.

realgdman avatar Jun 24 '23 22:06 realgdman

I'm not sure this exists in DreamBerd, because I don't know what mean. Please specify what you mean by this (future) multiply-divide operator?

gooddavvy avatar Jun 25 '23 17:06 gooddavvy

Please specify what you mean by this (future) multiply-divide operator?

Like muliply-add, but more powerful

TodePond avatar Jun 25 '23 18:06 TodePond

I still don't undertsand @TodePond

gooddavvy avatar Jun 25 '23 20:06 gooddavvy

It's not mad, it's mud.

stohrendorf avatar Jun 25 '23 22:06 stohrendorf

What do you mean @stohrendorf?

gooddavvy avatar Jun 25 '23 22:06 gooddavvy

You are aware that this is not a serious language, and this just adds another joke?

stohrendorf avatar Jun 25 '23 22:06 stohrendorf

It is serious and awesome. I am aware that you are not serious. DO NOT be like that.

gooddavvy avatar Jun 25 '23 22:06 gooddavvy

/* is of course divide multiply, not multiply divide (*/), an equally important yet fundamentally different operation

const const a = 123!
const const b = 456!
const const c = a /* b!
print("Hello world")!
const const d = c */ b!
when (a == b) {
  print("Naturally this shouldn't happen")!
}

I think, however, in the interest of balance that every multiple-divide should be matched with a divide multiply. that is to say, */ is only acceptable following a /* that isn't already matched with a */

For convenience, /* neutered by combining it with nop, thus helping maintain balance,

const const e = a /* nop */ b!

ZanderBrown avatar Jun 26 '23 02:06 ZanderBrown

const const const 1 = 2!

TeraByte-Official avatar Jun 26 '23 21:06 TeraByte-Official