# Other languages are different, but not that different

**URL:** <https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838>\
**Category:** General\
**Created:** [September 25, 2026, 4:44pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838 "2026-09-25T16:44:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgondan1](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/mgondan1/32/803_2.png) [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Post date:** [September 25, 2026, 4:44pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/1 "2026-09-25T16:44:46Z")

</div>

I think the original quote is from O’Keefe “Prolog is different, but not that different.”

Those students used to procedural/imperative languages sometimes have a hard time getting started with prolog, because it is a bit different, more a database query language than a command. There’s some truth in this.

Be careful not to get too much used to prolog, though. At some point it ruins your skills in procedural/imperative languages. I noticed this recently. I fail in rather simple tasks, when I have to solve problems in R or so.

---

<div class="post-metadata">

**Author:** ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)\
**Post date:** [September 25, 2026, 5:10pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/2 "2026-09-25T17:10:46Z")

</div>

> [@mgondan1](#):
>
> Be careful not to get too much used to prolog, though. At some point it ruins your skills in procedural/imperative languages. I noticed this recently. I fail in rather simple tasks, when I have to solve problems in R or so.

Funny. I’ve always considered learning Prolog adds something to my skills in imperative languages. Notably, rather than just doing the thing you want to do, create a data structure that describes properties of the domain and have generic routines using these. In other words: encode more in data and less in code.

---

<div class="post-metadata">

**Author:** ![mgondan1](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/mgondan1/32/803_2.png) [@mgondan1](https://swi-prolog.discourse.group/u/mgondan1)\
**Post date:** [September 25, 2026, 5:44pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/3 "2026-09-25T17:44:55Z")

</div>

Interesting point. My observation (N = 1, of course) may also be a bit special to R. In 90% of the use cases in R, one just wants something to get done, so there is an impulse to start writing before actually thinking about the problem.

---

<div class="post-metadata">

**Author:** ![ridgeworks](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/ridgeworks/32/886_2.png) [@ridgeworks](https://swi-prolog.discourse.group/u/ridgeworks)\
**Post date:** [September 25, 2026, 8:31pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/4 "2026-09-25T20:31:30Z")

</div>

> [@mgondan1](#):
>
> so there is an impulse to start writing before actually thinking about the problem.

But isn’t that a problem? Should we not be discouraging “impulsive” programming?

And yes I understand that that is contrary to human nature.

---

<div class="post-metadata">

**Author:** ![emummel20](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/emummel20/32/4952_2.png) [@emummel20](https://swi-prolog.discourse.group/u/emummel20)\
**Post date:** [September 27, 2026, 1:37pm UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/5 "2026-09-27T13:37:43Z")

</div>

> [@mgondan1](#):
>
> At some point it ruins your skills in procedural/imperative languages.

Couldn’t one argue that it’s inadvisable to get too much used to imperative languages as it ruins your skills in prolog?

---

<div class="post-metadata">

**Author:** ![abaljeu](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/abaljeu/32/136_2.png) [@abaljeu](https://swi-prolog.discourse.group/u/abaljeu)\
**Post date:** [October 11, 2026, 2:36am UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/6 "2026-10-11T02:36:01Z")

</div>

I agree with the tittle. Most of any prolog program i’d write has one mode of use, and can be described as non-backtracking functions. Some functions are conditions that guide an if/else, and actually when it comes to fancy loops I often build those as iteration rather than recursion too.

And then there’s the other part of the program which is completely different in how you program from other languages.

---

<div class="post-metadata">

**Author:** ![williamlewis](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@williamlewis](https://swi-prolog.discourse.group/u/williamlewis)\
**Post date:** [October 30, 2026, 8:41am UTC](https://swi-prolog.discourse.group/t/other-languages-are-different-but-not-that-different/9838/7 "2026-10-30T08:41:03Z")

</div>

The point about most of a Prolog program having a single mode of use and behaving like non-backtracking functions rings true, and it shows the gap is often narrower than the title suggests. On impulsive programming, I’d separate writing a rough draft from skipping design; the former is fine, but the latter is what actually causes trouble. On whether imperative practice erodes Prolog skill, it probably depends on whether you keep both active. Mostly the two paradigms competed for my habits rather than one erasing the other.
