Commands in 2.2.1

60 views
Skip to first unread message

Eric Jutrzenka

unread,
May 19, 2013, 8:48:12 AM5/19/13
to scalat...@googlegroups.com
Hi, 

I've been playing around with Scalatra commands using 2.2.1 in the example project.  I've made changes to get rid of the deprecation warnings but I'm quite new to scala and scalatra so I'm not sure if I'm doing it right:


In my changes the handler method in TodoData no longer uses pattern matching.  So I guess the pattern would be that this method would be overloaded when new commands are added?

Thanks,

Eric

Ivan Porto Carrero

unread,
May 19, 2013, 11:06:18 AM5/19/13
to scalat...@googlegroups.com
You're on the right track.
The pattern matching got in the way of static type safety so instead of that it you can now plain methods

-- 
Ivan Porto Carrero

--
You received this message because you are subscribed to the Google Groups "scalatra-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalatra-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages