>> It's pretty ugly to use aliases for numerical code, e.g. with core.matrix, >> e.g. > > Agreed. It's nice that :require :refer :all is available for such instances, > isn't it?
* Or for the more gentlemanly and considerate among us, just (:require ... :refer [+ - / *]). -Greg -- Please do not email me anything that you are not comfortable also sharing with the NSA. On Aug 5, 2013, at 10:04 AM, Greg <g...@kinostudios.com> wrote: >> It's pretty ugly to use aliases for numerical code, e.g. with core.matrix, >> e.g. > > Agreed. It's nice that :require :refer :all is available for such instances, > isn't it? > > -Greg > > -- > Please do not email me anything that you are not comfortable also sharing > with the NSA. > > On Aug 5, 2013, at 8:22 AM, Mikera <mike.r.anderson...@gmail.com> wrote: > >> On Monday, 5 August 2013 09:50:34 UTC+1, Steven Degutis wrote: >> The only time I've seen :as lead to ugly code was when it was in a DSL that >> would probably have been nicer to use if it was a data-based DSL like Hiccup >> rather than code-based. >> >> It's pretty ugly to use aliases for numerical code, e.g. with core.matrix, >> e.g. >> >> (mat/dot (ops/+ [1 2 3] 1) (ops/- [1 2 3] 1)) >> >> vs: >> >> (dot (+ [1 2 3] 1) (- [1 2 3] 1)) >> >> -- >> -- >> 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/groups/opt_out. >> >> >
signature.asc
Description: Message signed with OpenPGP using GPGMail