Re: Port of simple Scala match to Clojure core.match

2015-07-16 Thread Jonathan Winandy
Hello ! I think, this branch (without :<< empty?)) (match [l prefix] *[_ ([] :seq)] true* ​is already checking that prefix is empty. ​Have a nice day, Jon On 16 July 2015 at 23:06, Rastko Soskic wrote: > Hi, I am getting familiar with Clojure's core.match and > simply starting with some

Port of simple Scala match to Clojure core.match

2015-07-16 Thread Rastko Soskic
Hi, I am getting familiar with Clojure's core.match and simply starting with something simple and familar (some Scala match expressions) and translating that to core.match variant: Check out this function which checks whether sequence starts with another: def startsWith[A](l: List[A], prefix: Lis

[ANN] Clojure Plugin for SonarQube

2015-07-16 Thread Zobair Shahadat
I'd like to announce the release of clojure-sonar, a sonar plugin that statically analyses clojure code. It works by using eastwood and kibit to lint and analyse your code then displays the output in a SonarQube widget. Located on GitHub here: https://

Re: Advice on introducing a Java dev to Clojure

2015-07-16 Thread Colin Yates
One other point I should have expanded more. Viewing your domain model as a state machine responding to a sequential list of commands allows you to easily isolate time as just another property. I have a [:set-time {:now ….}] which emits a [:time-set {:now …}] which opens the door to so many thin

Re: Advice on introducing a Java dev to Clojure

2015-07-16 Thread Colin Yates
Hi Johanna, you may intuit some of my experience by my posts on the DDD groups ;-). By far the hardest thing I found was applying DDD, identifying bounded contexts etc. However, from a technical point of view the thing that most stood out to me was the power of recording the decision, and effec

Re: [ANN] Clojure.Joda-Time 0.6.0

2015-07-16 Thread Mikera
Looks really nice! Has anyone given thought to a more general time library, that can also handle the new java.time instances? I expect that will become a standard across many Java libraries in the future so it would be helpful to have good interop capabilities. On Wednesday, 15 July 2015 16:48