What difference between bug and defect according to theory and practical point of view?

What difference between bug and defect according to theory and practical point of view

I can add one more to these two words that is error.

Let us recollect people use these words practically and at appropriate context. In fact all are occured by mistake.

Developers use the word error when compiler or linker shows mistakes in coding.

And later stage developers use the same error as bug while or aftering fixing it.

You would use the word ‘error’ for documentations mistakes.

Customers use the word defect when their product has some problem which is mostly related to hardward, now its a defective product.

So to summarise clearly bug is more related to software and defect is more related to tangible things. Error is technical word probably.

I welcome comments on my comments. There is another high level word ‘issue’