I’m loving the Realm course! In chapter 5, filtering is being discussed and on page 99 there is the following quote:
" There is also a variation of filter(_) that, instead of a format string, takes an
NSPredicate object, providing safer and more robust filtering. Add to the last example:"
I’m curious to hear why using NSPredicate is safer and more robust? Is it best practice to use NSPredicates over string literals when filtering using realm?
Is it simply that using string literals in a query is more error-prone?
Any help here is greatly appreciated!