3 ms·
Thank you. Even if Lambdatalk is built on the underlying javascript it is not imperative but functional. Data are immutable, except inside arrays with'primitive
by martyalain 4y ago
Thank you. Even if Lambdatalk is built on the underlying javascript it is not imperative but functional. Data are immutable, except inside arrays with'primitives like {A.set! index value array} equivalent to array[index] = value.
About the tripartite separation of HTML, CSS and JS it's always possible using the two special forms "style" and "script". But sometimes I find better to mix both in user defined functions, easier to build and edit inside a kind of box, it's a matter of choice.
Lambdatalk hides the different syntax of HTML, CSS and JS behind a single one, s-expressions, 9 special forms, [lambda, def, if, let, quote, macro, style, script, require] and a set of primitives dealing with words, sentences and arrays in a coherent style. For instance {W.first word}, {S.first sentence} and {A.first array} get the first term of a word, a sentence and an array. Using Javascript you would write word.charAt(0), string.match( /[^\s]*\s/ ) and array[0] to get the first character of a word, the first word of a sentence, the first term of an array.
Where will the lambdaway project go? I don't know. I have been working with for years, quasi lonely, trying to ipprove it and it is useful for me, as a tool to create documents and/or to explore funny algorithms.