Better HN
topnewbestaskshowjobs
Log inSign up

ovyerus

5 karma · joined Feb 22, 2020 (6y ago) · 3 submissions

Submissions

comment 2y ago · link · parent

JS is really good at FP, but it doesn't have any real concept of function purity and isolating side effects.

Rust has constant functions, for one: https://doc.rust-lang.org/reference/const_eval.html

comment 4y ago · link · parent

No it's just bad code/devops

comment 6y ago · link · parent

class is a perfectly valid property in jsx, as it just gets mapped to `{"class": ...}`, however react adopts to use className instead because of the dom api `el.className = ...`, but also some stuff like older versions of IE.

most other jsx-based things like hyperapp accept `class` just fine from what i know