3 ms·
Prolog has very decent support for string manipulation... there are hardly any modern popular languages that offer anything like DCGs out of the box. Even thou
by crabbone 3y ago
Prolog has very decent support for string manipulation... there are hardly any modern popular languages that offer anything like DCGs out of the box. Even though standard Prolog doesn't have regular expressions out of the box, popular implementations usually have libraries to do that.
If I had to do a lot of work with strings, and I had to choose between, say, C and Prolog, I'd definitely go with Prolog. If it was Python vs Prolog, it would depend on a task...