Young people charged in connection with recent rioting face consequences that will follow them long into adulthood, an expert in child law has said.