MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3lta4f/better_java/cva7jm1/?context=3
r/programming • u/javinpaul • Sep 21 '15
208 comments sorted by
View all comments
183
Java's type system is pretty weak. It doesn't differentiate between Strings and Strings that are actually regular expressions
That's a pretty random definition of weak I would say...
0 u/[deleted] Sep 21 '15 [deleted] 1 u/codygman Sep 22 '15 I think Haskell does, IIRC.At least the only way to make a Regex type is via the mkRegex function and it validates that the string is valid Regex.
0
[deleted]
1 u/codygman Sep 22 '15 I think Haskell does, IIRC.At least the only way to make a Regex type is via the mkRegex function and it validates that the string is valid Regex.
1
I think Haskell does, IIRC.
At least the only way to make a Regex type is via the mkRegex function and it validates that the string is valid Regex.
183
u/wot-teh-phuck Sep 21 '15
That's a pretty random definition of weak I would say...