Bratko section 4.4 shows an example for building a (simple) travel agent app, where you can query it for flight info.
He sets up a flight
predicate as follows…
timetable(edinburgh, london,
[
% dep time / arr time / flight number / days
9:40 / 10:50 / ba4733 / alldays,
13:40 / 14:50 / ba4773 / alldays,
19:40 / 20:50 / ba4833 / [mo,tu,we,th,fr,su]
]).
I’m puzzled why he used /
to delimit the pieces of data in the list. Earlier on, when building a family database, he used a functor (is that the right word?) as follows…
person(jim, spriggs, date(9,may,1968), works(tesco,8500)).
Isn’t this a clearer way to set up the data? What does he gain by using /
over a functor?
Thanks