Skip to content
Advertisement

Tag: pattern-matching

regEx codenameon

i’m working in the last part of my project in java i used pattern regExp for email and password verification and now i tried to use them in codenameone but it didn’t work maybe it’s because of the syntaxe or the import i searched but i found noting here’s the pattern i declared and i called it like this but

What is the advantage of using scala pattern matching instead of java switch case?

Everybody says that pattern matching is a great feature in functional languages. Why? Can’t I simple use ifs and switch cases for everything? I’d like to understand the advantages of using pattern matching instead of regular procedural programming ifs and switch cases Answer I’d first like to note that you don’t use pattern matching “instead” of switch statements. Scala doesn’t

Advertisement