On Jan 6, 2011, at 1:48 PM, Ken Wesson wrote:

> On Thu, Jan 6, 2011 at 1:08 PM, Raoul Duke <rao...@gmail.com> wrote:
>> On Thu, Jan 6, 2011 at 3:32 AM, Baishampayan Ghose <b.gh...@gmail.com> wrote:
>>> Haha! Same here. I have used transients many times too, but I fell
>>> into the trap this time :)
>> 
>> now if only there were some kind of programming language technology
>> that could help us figure out when we're mis-applying operations to
>> things... ;-)
> 
> A compiler warning if the return value from assoc!, disj!, or conj! is
> discarded could help in this particular case.

There's a plethora of established idioms that warrant a warning of some sort 
when violated.  This would ideally be the domain of a good Clojure linter, 
rather than playing whack-a-mole with particular violations by piling warnings 
into the compiler (for which there are surely higher priority TODOs).  Such a 
tool would ideally be implemented such that any development environment could 
apply it...and, when the compiler is revisited such that it becomes more easily 
extensible, it may well be able to make use of that linter as desired.

- Chas

-- 
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