On Wed, Mar 1, 2023, 9:10 AM Randy Taylor <dev@rjt.dev> wrote:

I think the JSON modes are prog-modes just because they are attached to the javascript modes in some way (usually derived from it). I'm not sure how much weight we can assign to certain modes deriving from other modes and saying we should do the same (especially in the case of ELPA/MELPA modes); instead we should ask which mode makes the most sense to derive from. Although there is the argument for consistency that you mentioned...

Perhaps since data serialization formats can be used to store data structures in source files in a portable way, it makes sense to write generic modes for them that can be adapted to specific PL modes?
I'm sure JSON developed in the opposite direction, but would it have been better to start with JSON mode then embed it in JavaScript/Python/etc modes from the start?
Lynn