Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
epolanski
on Jan 31, 2023
|
parent
|
context
|
favorite
| on:
Marko: An HTML-Based Language
By the way "declarative" doesn't really mean anything with very specific boundaries.
Would've been that better if you had some `increment(state)` that updated a ref anyway?
rmrfchik
on Jan 31, 2023
[–]
No, it's has the same semantic. Method can return the whole new state, the changed fields or actions to be taken. Or method can call the passed continuation with changed values instead of return.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Would've been that better if you had some `increment(state)` that updated a ref anyway?