News for hackers. Stuff that matters.
Re:Fighting the Borrow Checker by lukewink on Monday January 16, 2017 @07:28PM (#13414256)
In the example given here, how would one answer the following questions:

1. For a given school, return all the students

2. For a given school, return all the classes

In the last data model given (the correct one), the above 2 things can't be done (I think) without doing something funky like enumerating all the Enrollments and finding unique students/classes. In order to modify the data model to provide the needed information, wouldn't you run into the same borrow checker problems?

There are no comments on this comment yet.