Nick Smith
08/19/2020, 4:28 AMKartik Agaram
Felix Kohlgrüber
08/19/2020, 6:07 AMibdknox
08/19/2020, 6:08 AMan incrementer is a button with a count of 0
the text is bound to its count
when an incrementer is clicked
increment the count
None of that is builtin, e.g. here’s how increment is defined:
to increment a number
set the number to the number + 1
And here’s a button:
a button is an element that has a text string
its tag is "button"
always set "textContent" of the button to its text
Andrew F
08/19/2020, 6:09 AMNick Smith
08/19/2020, 6:09 AMNick Smith
08/19/2020, 6:40 AMNick Smith
08/19/2020, 6:45 AMNick Smith
08/19/2020, 7:00 AMKonrad Hinsen
08/19/2020, 7:15 AMopeispo
08/19/2020, 11:19 AMKonrad Hinsen
08/19/2020, 12:39 PM-p
prefix from earlier Lisp days incredibly clumsy. I read the question mark with a different tone (to myself, I hardly speak Lisp to others), and that sounds very natural to me.Orion Reed
08/19/2020, 2:11 PMStefan
08/19/2020, 2:25 PMAlex Wein
08/19/2020, 3:22 PMibdknox
08/19/2020, 4:41 PMan element is a thing with a tag "div"
to create an element
dom.elem(the element, its tag)
It’s just an FFI call. The language was designed to be able to go all the way down to bare metal if desired.
The full semantics of the model is probably best left for another discussion 🙂ibdknox
08/19/2020, 4:51 PMibdknox
08/19/2020, 4:54 PMibdknox
08/19/2020, 5:03 PMJimmy Miller
ibdknox
08/19/2020, 7:25 PMelbear
08/20/2020, 9:03 AMwtaysom
08/20/2020, 1:56 PMNick Smith
08/21/2020, 3:32 AMAndrew Reece
08/24/2020, 1:16 PMNick Smith
08/26/2020, 12:45 PM