The key to mechanical longevity is maintenance, a bit of oil and a bit of care and this stuff will last a lifetime. How many electronics bits and pieces do you know or do you have that have lasted > 20 years? > 30 years?
Case in point a friend has a Shimano bike with electric shifters. Super nice bike, but super fragile. One trainride and a very thin and fragile cable got lodged in the gears.
Several long hours of work later I have it working again (this only happened last week), oh, and never mind the $45 crappy little cable with custom plugs which gets plugged into an in-frame patch panel that is just about impossible to get to. I don't see any advantage over my mechanical stuff, in fact I see a significant disadvantage. Electronics and bicycles don't mix well unless you are prepared to make things bullet proof and that will price them right out of the market. So I don't see this as a viable path, a novelty, something on very high end bikes but not something that will stand the test of time.