Hi,

Am 07.03.2012 um 01:11 schrieb Leif:

> Unfortunately, the reader does not actually follow this spec, e.g. it will 
> happily accept :div#id.cla$$ as a valid keyword.  Some web programming 
> clojure[script] libraries use this pseudo-CSS syntax in keywords, so if the 
> reader was changed to strictly follow these rules, a lot of web code would 
> probably break. 

It's the other way around: the reader *does* follow the spec. Feed it a valid 
sequence of characters and you will get a valid keyword. Feed it an invalid 
sequence of characters and you will get an invalid keyword. This is not in 
conflict with the spec. A bad decision to do so instead of bailing out? Maybe. 
Maybe not.

However documenting everywhere that feeding garbage in might result in shit 
coming out has this “things in the mirror might be closer than they appear” 
taste. WTF? The mirror is not the problem. Nor is the car manufacturer to be 
held responsible. If the driver of a car causes an accident, it's her fault. 
*She* is responsible. No one else.

The developers of said libraries obviously didn't live up to their 
responsibility. Either they did not research how the reader works and what 
valid keyword characters are. Then they did not do their job correctly. Or they 
knew how the reader works but knowingly decided to operate it outside defined 
limits. Then they basically gambled that things keep working and that the 
characters will be eventually allowed in future versions of the reader.

In this particular case I would expect the bet to pay off. But if suddenly the 
reader is changed to handle # differently, then all these libraries will break. 
And now guess who is responsible. The reader? No.

Don't pass the buck.

Sincerely
Meikel

PS: I hope Clojure's development mode is not switched to “fait accompli driven.”

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to