0

Is there a programming language that let you costumize everything like scala or lisp for example?

30th Nov 2022, 3:58 PM
anass Sanba
anass Sanba - avatar
2 odpowiedzi
+ 2
Lisp is a good example, because it has very minimal syntax, but it is not the only one. One modern and quite popular Lisp dialect is Clojure, which I am a big fan of. Some languages are particularly well suited for writing DSL's (domain specific languages), for example in Kotlin we can take advantage of customizable infix functions to build up a syntax that looks almost like natural language, and with context receiver lambdas, we can represent deeply nested structures (such as html or XML) in very expressive code. The advantage of Scala is that it is very generous about the symbols you can use as function names, and also you can avoid parentheses most of the time, so the code can be very fluid to read, but some Scala libraries look very cryptic because of these unusual symbols. Another way to achieve this is through metaprogramming, so if you find any language which has this power, you can surely customize the language itself. Lisp is clearly king here, other notable mentions: Nim, Rust, Elixir, Ruby, Raku
30th Nov 2022, 7:32 PM
Tibor Santa
Tibor Santa - avatar
+ 1
Thank you so much for taking the time to explain this .iwill check them out .have a nice day!
30th Nov 2022, 9:42 PM
anass Sanba
anass Sanba - avatar