That would indeed solve many problems. It would also focus legislative minds now and in the future. Not sure it would be beneficial for the judicial branch.

Also beneficial perhaps would be to have it be necessary that the law spells out the technical implementation. Sort of like patents do.