What to learn? Lisp or OCaml or…? [closed]

Neither Lisp nor OCaml is super far afield from what you already know. Here are four suggestions chosen partly for intrinsic interest and partly to stretch your horizons. A logic programming language, probably Prolog. I haven’t found good materials online, but the book The Art of Prolog by Sterling and Shapiro is excellent. The more … Read more

What does “powerful” mean, when discussing programming languages?

It does not have a well-defined meaning. In these types of discussions, “language X is more powerful than language Y” usually means little more than “I like language X more than language Y.” On the other end of the spectrum, you’ll also usually have someone chime in about how any Turing-complete language can accomplish the … Read more

What’s so great about Scala? [closed]

Here are some of the things that made me favour Scala (over, say, usual Java): a) Type inference. The Java way of doing it: Map<Something, List<SomethingElse>> list = new HashMap<Something, List<SomethingElse>>() .. is rather verbose compared to Scala. The compiler should be able to figure it out if you give one of these lists. b) … Read more

Language support for chained comparison operators (x < y < z)

It should be more common, but I suspect it is not because it makes parsing languages more complex. Benefits: Upholds the principle of least surprise Reads like math is taught Reduces cognitive load (see previous 2 points) Drawbacks: Grammar is more complex for the language Special case syntactic sugar As to why not, my guesses … Read more

tech