I don't entirely buy the official story on this feature, but it is what it is. In my experience, people do a lot of defensive typecasting, much more than we reason about performance. Because the performance just doesn't really matter in the vast majority of cases, and we're more concerned with making sure the element goes to the right place. But like others have said, that ship sailed in 2008. I just make sure to cast my collections in the way that explicitly ensures that conj works predictably.
On Tue, Jul 17, 2018 at 2:47 PM Christian Seberino <cseber...@gmail.com> wrote: > >> When writing software in Clojure, the data structures are often the >> keystone of the codebase. When I write Clojure, I start by mapping out what >> data structures and keywords I need, and from there write functions around >> them. It's for this reason that I don't think prepend and append functions >> are particularly useful for students, as the teacher should be encouraging >> them to think *more* about the data structures they're using, not less. >> > > I presume you mean that thinking more about data structures and thinking > about computational efficiency are inseparable? You can't do the former > without the latter? > > cs > > -- > 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 > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.