18 ms·
who writes code like that? creators = [ { "name": { "name_authority": TextField, "name_authority_id": I
by DisposaBoy 16y ago
who writes code like that?
creators = [
{
"name": {
"name_authority": TextField,
"name_authority_id": IntegerField,
"display_string": TextField
},
"user_id" :IntegerField,
"roles": [TextField],
"attrs": [TextField],
"xts": [TextField]
}
]
anyway
- swannodette 16y agoI certainly don't write Python code that looks like what I wrote. My point was that the various idiomatic versions, including yours, certainly isn't any more readable than the Clojure version.
- DisposaBoy 16y agoI don't speak for everyone but the reason I see lisp code as unreadable is that most of what I've seen is written like your example. That is, there is some indentation which helps, but it's as-if the coder is afraid to utilise vertical space so they put all the closing brackets on the same line, most of the opening ones in the middle of some lines. With that kind of formatting (for me at-least), it's not immediately clear which.