What is polymorphic code ?
Discussion
When 2 data in the code can be used at the same place for slightly different behaviors. For example, both man and woman are human, but their pee function are different. So man and woman can share most of the code except for pee.
I don’t know why I had this weird example lol
A Nostr example, social posts and DM are both notes, but DM are encrypted. They should share most code except for “show” function. The DM’s show needs to decrypt the content first while social post can be directed shown.