Joined October 2012
·
Posted to
Scala pattern matching with regex is awesome
over 1 year
ago
Discovered it today from answer on stackoverflow.com.
However, to check if regex matches without 'match' construct (to get boolean if it matches) some ugly method calls are required http://stackoverflow.com/questions/3021813/how-to-check-whether-a-string-fully-matches-a-regex-in-scala
Achievements
78 Karma
0 Total ProTip Views
Platypus
Have at least one original repo where scala is the dominant language
Narwhal
Have at least one original repo where Clojure is the dominant language
Velociraptor
Have at least one original repo where Perl is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python 3
Have at least three original repos where Python is the dominant language
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Sass requires Ruby, which can make maintenance of app more complicated if app itself isn't written in Ruby (maybe it works in JRuby, though). Less has more implementations, and main implementation in javascript works in many environments (browser, node.js, JVM - rhino).