Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
kazinator
on April 14, 2019
|
parent
|
context
|
favorite
| on:
JSON as configuration files: please don’t (2016)
There is no need for optional attributes in the first place, because you can always just do this:
<thing> <optattr>42</optattr> ... </thing>
insteadof
<thing optattr="42"> ... </thing>
Attributes exist in order to create a more compact syntax within XML/HTML tags, in ironic recognition of these notations being horribly verbose.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: